Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python (.py file) Note: Please comment the steps and post a screenshot of your output, source code, and trials. Also include the spaces, indents, and
Python (.py file)
Note: Please comment the steps and post a screenshot of your output, source code, and trials. Also include the spaces, indents, and new lines. Thank you.
Part 3: Triangles and Diamonds 3A. Write a program that creates a pyramid out of asterisks using only while loops. Note, your program should allow the user to adjust the size of the pyramid. Please note, the minimum size of a pyrmaid is 2, Your program should terminate when the user enters to quit the program. Below is a sample run of your program: RESTART Instructions: This program prompts the user to enter the size of their pyramid Note, the size is the number of rows that make up the pyramid. The program will continuously prompt the user create a new pyramid until he or she enters g" to quit the program. Enter the size of the the pyramid: 1 Error: Your pyramid must be greater than size 1 Enter the size of the next pyramid: 3 k * Enter the size of the next pyramid: 4 k * Enter the size of the next pyramid: 6 k * Enter the size of the next pyramid: q You will now exit the program. GoodbyeStep 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