Question: I need help writing a Python program that creates a pyramid of numbers with the left side of the pyramid counting down and the right
I need help writing a Python program that creates a pyramid of numbers with the left side of the pyramid counting down and the right side counting up. Ask the user for the height of the pyramid and use their input to construct using either a FOR loop or a WHILE loop.
Ask the user for a number - You can assume the input is a valid integer - However, if it's 0 or less, ask for the height again - Generate a pyramid made of numbers based on user input
it should look like this:
1
2. 2
3. 3. 3
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
