Python Alphabet Pattern 16

Last Updated:

Python Alphabet Pattern 16

Try to print the following alphabet pattern using Python.

Print This Output
    A
  B C D
E F G H I

Source Code

Python Compiler
k = 64 for i in range(0, 5, 2): for j in range(4, -1, -1): if(j > i): print(" ", end="") else: k += 1 a = chr(k) print(a, end=" ") print()

Share this Page

Meet the Author