Python Alphabet Pattern 1

Last Updated:

Python Alphabet Pattern 1

Try to print the following alphabet pattern using Python.

Print This Output
A
AB
ABC
ABCD
ABCDE

Source Code

Python Compiler
for i in range(1, 6): for j in range(65, 65+i): a = chr(j) print(a, end="") print()

Share this Page

Meet the Author