Python Alphabet Pattern 31

Last Updated:

Python Alphabet Pattern 31

Try to print the following alphabet pattern using Python.

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

Source Code

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

Share this Page

Meet the Author