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
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
Get step-by-step solutions from verified subject matter experts
