Question: 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.

Python (.py file) Note: Please comment the steps and post a screenshotof your output, source code, and trials. Also include the spaces, indents,and new lines. Thank you. Part 3: Triangles and Diamonds 3A. Write

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. Goodbye

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!