subject

LAB: Warm up: Drawing a right triangle This program will output a right triangle based on user specified height triangle_height and symbol triangle_char. (1) The given program outputs a fixed-height triangle using a character. Modify the given program to output a right triangle that instead uses the user-specified triangle_char character. (1 pt) (2) Modify the program to use a loop to output a right triangle of height triangle_height. The first line will have one user-specified character, such as % or* Each subsequent line will have one additional user-specified character until the number in the triangle's base reaches triangle_height. Output a space after each user-specified character, including a line's last user-specified character. (2 pts) Example output for triangle_char = % and triangle_height = 5: Enter a character: Enter triangle height: 5 273334.1408726 LAB ACTIVITY 16.6.1: LAB: Warm up: Drawing a right triangle 0/3 main. py Load default template... 1 triangle_char - input('Enter a character:\n') 2 triangle_height = int(input('Enter triangle height:\n')) 3 print('') 4 5 print ('*') 6 print ("**') 7 print ("***') 8

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 03:00
With editing, word automatically displays a paste options button near the pasted or moved text. a. cut-and-paste b. drag-and-drop c. inline d. copy-and-carry
Answers: 1
question
Computers and Technology, 25.06.2019 05:00
Which of the following statements best deceive the relationship between carrying capacity and population size
Answers: 1
question
Computers and Technology, 25.06.2019 17:10
What does the storyboard editor do? a. displays a close up view an individual frame in a game b. shows you all the frames in a game at the same time changes the color and size of active objects automatically adds a title screen to a game select the best answer from the choices provided ve
Answers: 1
question
Computers and Technology, 25.06.2019 18:30
To deny a host from sending http traffic destined to a specific server you will need to apply a access control list.
Answers: 1
You know the right answer?
LAB: Warm up: Drawing a right triangle This program will output a right triangle based on user speci...
Questions
question
Chemistry, 22.03.2021 18:00
question
Biology, 22.03.2021 18:00
question
Mathematics, 22.03.2021 18:00