Question: python language Function Name: draw Triangle Parameters: height ( int ) Returns: None Description: After destroying your friend in Scrabble, you decide to unwind and

python language

python language Function Name: draw Triangle Parameters: height ( int ) Returns:

Function Name: draw Triangle Parameters: height ( int ) Returns: None Description: After destroying your friend in Scrabble, you decide to unwind and watch some Bob Ross together. Unfortunately, you can't paint, so you decide to draw triangles instead! Write a function that takes in a height and prints a right triangle of that height to the Shell. Each line should be its line number printed that many times. Each number should be separat- ed by spaces, but there should no extra spaces at the end of each line. See examples below: >>> drawTriangle(3) 22 3 3 3 >>> drawTriangle(5) 1 22 3 3 3 4 4 4 4 5 5 5 5 5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!