python program full pyramid with mirror

print("enter a number ")
a=int(input())
for i in range(1,a+1):
 print (' ' * (a - i), '* ' * i)
 if i==a:
  for b in range(1,a+1): 
    print (' ' * (b), '* ' * (a - b) )

Leave a Comment

Your email address will not be published. Required fields are marked *