Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 5Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started