Python Alphabet Pattern 22

Last Updated:

Python Alphabet Pattern 22

Try to print the following alphabet pattern using Python.

Print This Output
        A
      B C
    D E F
  G H I J
K L M N O

Source Code

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

Share this Page

Meet the Author