Python Alphabet Pattern 20

Last Updated:

Python Alphabet Pattern 20

Try to print the following alphabet pattern using Python.

Print This Output
    A
   BA
  CBA
 DCBA
EDCBA

Source Code

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

Share this Page

Meet the Author