Star pattern

 # Star Display

"""

"""

# Read Number of lines 

N = int(input("Enter number of Lines : "))


print("Star pattern : ")


for n in range(1,N+1,1):

print("   "*(N-n),end="")

print(" * "*((2*n)-1))


No comments:

Post a Comment

Don't be a silent reader...
Leave your comments...

Anu