Page 1 of 1

Reversed Triangle Function Name: draw Triangle() Parameters: numRows (int), character (str) Returns: None Description: Y

Posted: Mon Jun 06, 2022 2:02 pm
by answerhappygod
Reversed Triangle Function Name Draw Triangle Parameters Numrows Int Character Str Returns None Description Y 1
Reversed Triangle Function Name Draw Triangle Parameters Numrows Int Character Str Returns None Description Y 1 (31.07 KiB) Viewed 21 times
pls solve it as python
Reversed Triangle Function Name: draw Triangle() Parameters: numRows (int), character (str) Returns: None Description: You find that if you start with n characters and for every row you decrease the num- ber of characters by 1, you can print a reversed right triangle. Write a function that takes in a num- ber of rows and a character and prints a reversed right triangle with the 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 triangle. >>> drawTriangle(4, '*') >>> drawTriangle (2, '!') '!!' '!'