top of page
Subham Das

n=int(input("Enter Number :"))


#Pattern 16 print('(16)') for i in range (n+1,1,-1) : for j in range (i,n+1) : print(end = " ") k = 1 for j in range (i,1,-1) : print(chr(96+k),end = "") k += 1 for j in range (i-1,1,-1) : print(chr(96+k),end = "") k+=1 print() print()



18 views0 comments
Subham Das

n=int(input("Enter Number :"))


#Pattern 15 print('(15)') for i in range (1,5) : for j in range (1,8) : if j+i == 5 or j-i == 3 : print(1,end = " ") elif i == 3 and j%4 == 0 : print(i-1,end = " ") elif i == 4 and (j == 3 or j == 5) : print(i-1, end = " ") else : print(end = " ") print() print()



29 views0 comments
Subham Das

n=int(input("Enter Number :"))


#Pattern 14 print('(14)') for i in range (1,3) : for j in range (1,6) : if j+i == 5 or j-i == 3 : print('*', end = "") else : print(end = " ") print() for i in range (1,4) : for j in range (1,6) : if j%2 == 0 : print(end =" ") else : print('*', end = " ") print() for i in range (1,3) : for j in range (1,6) : if j-i == 1 or j+i == 5 : print('*', end = " ") else : print(end = " ") print() print()



11 views0 comments
logo12.PNG
bottom of page