n=int(input("Enter Number :"))
#Pattern 12
print('(12)')
for i in range (1,n+1) :
for j in range (1,n-i+1) :
print(end = " ")
for j in range (i,0,-1) :
print("*", end = "")
for j in range (i,1,-1) :
print("*", end = "")
print()
for i in range (n+1,1,-1) :
for j in range (0,n+1-i) :
print(end = " ")
for j in range (1,i) :
print('*', end="")
for j in range (i,2,-1) :
print('*',end = "")
print()
print()
Comments