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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started