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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 20 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, '!') '!!' '!'
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply