Python Program to Print Right Triangle of Incremental Alphabets Pattern

Write a Python program to print right triangle of incremental alphabets pattern using for loop.

rows = int(input("Enter Right Triangle Incremented Alphabets Rows = "))

print("====The Right Triangle of Incremented Alphabets Pattern====")
alphabet = 65

for i in range(rows):
    for j in range(i, -1, -1):
        print('%c' %(alphabet + j), end = ' ')
    print()
Python Program to Print Right Triangle of Incremental Alphabets Pattern

This Python example prints the right angled triangle pattern of incremental alphabets or ascending order using a while loop.

rows = int(input("Enter Right Triangle Incremented Alphabets Rows = "))

print("====The Right Triangle of Incremented Alphabets Pattern====")
alphabet = 65
i = 0

while(i < rows):
    j = i
    while(j >= 0):
        print('%c' %(alphabet + j), end = ' ')
        j = j - 1
    print()
    i = i + 1
Enter Right Triangle Incremented Alphabets Rows = 12
====The Right Triangle of Incremented Alphabets Pattern====
A 
B A 
C B A 
D C B A 
E D C B A 
F E D C B A 
G F E D C B A 
H G F E D C B A 
I H G F E D C B A 
J I H G F E D C B A 
K J I H G F E D C B A 
L K J I H G F E D C B A 

About Suresh

Suresh is the founder of TutorialGateway and a freelance software developer. He specialized in Designing and Developing Windows and Web applications. The experience he gained in Programming and BI integration, and reporting tools translates into this blog. You can find him on Facebook or Twitter.