Python Alphabet Pattern 33

Last Updated:

Python Alphabet Pattern 33

Try to print the following alphabet pattern using Python.

Print This Output
    A
   B B
  C   C
 D     D
E       E

Source Code

Python Compiler
for i in range(65, 70): for j in range(69, 64, -1): if(i == j): a = chr(j) print(a, end="") else: print("", end=" ") for k in range(66, 70): if(i == k): a = chr(k) print(a, end="") else: print("", end=" ") print()

Share this Page

Meet the Author