Skip to content

Tabeye/Python_pyramids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Python_pyramids

Program to print full pyramids

the program uses a nested loop to print the pyramid. The outer loop controls the number of rows in the pyramid, while the inner loop controls the number of stars in each row. The print statement uses string multiplication to print the correct number of spaces and stars on each row. This program is more concise and easier to read than the previous program, but it may not be as efficient for very large values of n. print("For stupid people to print full pyramids. You can adjust the number of rows by changing the value of n")

About

Program to print full pyramids

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages