Question: Python: Define a function named print_pyramid_numbers(number_of_rows) which takes an integer as a parameter and prints a specific pyramid using numbers. Note : you can assume

Python: Define a function named print_pyramid_numbers(number_of_rows) which takes an integer as a parameter and prints a specific pyramid using numbers.

Note: you can assume that the parameter number_of_rows is always between 1 and 9 (inclusive).

For example:

Test Result
print_pyramid_numbers(5)
 1 212 32123 4321234 543212345
print_pyramid_numbers(4)
 1 212 32123 4321234 

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!