jackfrued / Python-100-Days

Python - 100天从新手到大师
157.99k stars 52.5k 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 9 months ago