Output= Print the butterfly pattern with height and width 2n-1. (Print them without space in-between)
n=int(input()) # take n input value for i in range(1,n+1): for j in range(1,2n): if j==1 or j==2n-i or j>=2n-i or j<=i: print("",end="") else: print(" ",end="") print() for m in range(n+1,2n): for k in range(1,2n): if k>=m or k==1 or k<=2n-m : print("",end="") else: print(" ",end="") print()