Question: Use Python and only while loops For this part of the homework you will write code to draw an isosceles right triangle. (A right triangle

Use Python and only while loops

For this part of the homework you will write code to draw an isosceles right triangle. (A right triangle in which the height and base are the same size.)

Your program should prompt the user for these inputs,in exactly this order:1. The height of their triangle 2. The symbol the triangle will beoutlinedin 3. The symbol the triangle will befilledwith

For these inputs, you can assume the following:

The height will be a positive integer (greater than zero)

The symbols will be a single character each

Use thefirst symbolto draw an isosceles right triangle of the height chosen by the user. The triangle should be filled in with thesecond symbol, in the cases in which there is interior space to fill.

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 Programming Questions!