Question: python help needed Right Triangles Function Name: rightTriangles() Parameters: numRows(int), character (str) Returns: None Description: You find that if you start with one character and

python help needed
python help needed Right Triangles Function Name: rightTriangles() Parameters: numRows(int), character (str)

Right Triangles Function Name: rightTriangles() Parameters: numRows(int), character (str) Returns: None Description: You find that if you start with one character and for every row you increase the num- ber of characters by 1, you can print a right triangle. Write a function that takes in a number of rows and a character and print a right triangle with the a height of the given number of rows that is made up of the given character. If you cannot make a right triangle print the string "No Triangle". Note: You need at least two rows to make a right triangle. >>> rightTriangles (4,'*') >>> rightTriangles (2, '1')

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!