jackfrued / Python-100-Days

Python - 100天从新手到大师
152.97k stars 51.74k forks source link

Python program to display Pyramid Pattern n=5 # number of rows # outer loop handling the number of rows for x in range(0,n): # inner loop handling the number of columns # values change according toouter loop for y in range(1,x+1): # displays the star in pyramid pattern print("*",end=" ") print() #1011

Open ken-opiyo opened 4 months ago