print python pattern for given value of N
Please check the following codes
a = int(input())
for i in range(a):
p = 65
for j in range(i, a):
print(chr(p),end="")
p += 1
for z in range(0, i*2):
print(" ", end="")
for k in range(a, i, -1):
p -= 1
print(chr(p), end="")
print()