Question: * Write a program texttriangle.py. This, too, is not a graphics program . Prompt the user for a small positive integer value, that Ill call

* Write a program texttriangle.py.

This, too, is not a graphics program. Prompt the user for a small positive integer value, that Ill call n. Then use a for-loop with a range function call to make a triangular arrangement of #characters, with n # characters in the last line. Hint: [5]

Then leave a blank line. Then make a similar triangle, except start with the line with n # characters. To make the second triangle, you can use a for-loop of the form discussed so far, but that is trickier than looking ahead to The Most General range Function and using a for-loop where a range function call has a negative step size.

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!