You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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