Python Program to Print Left Arrow Alphabets Pattern

Write a Python program to print left arrow alphabets pattern using for loop.

rows = int(input("Enter Left Arrow Alphabets Pattern Rows = "))

print("====The Left Arrow Alphabets Pattern====")
alphabet = 65

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

This Python example prints the left arrow of the pattern of the alphabets using a while loop.

rows = int(input("Enter Left Arrow Alphabets Pattern Rows = "))

print("====The Left Arrow Alphabets Pattern====")
alphabet = 65
i = rows - 1

while(i >= 0):
    j = i
    while(j >= 0):
        print('%c' %(alphabet + j), end = ' ')
        j = j - 1
    print()
    i = i - 1

i = 0    
while(i < rows):
    j = i
    while(j >= 0):
        print('%c' %(alphabet + j), end = ' ')
        j = j - 1
    print()
    i = i + 1
Enter Left Arrow Alphabets Pattern Rows = 12
====The Left Arrow Alphabets Pattern====
L K J I H G F E D C B A 
K J I H G F E D C B A 
J I H G F E D C B A 
I H G F E D C B A 
H G F E D C B A 
G F E D C B A 
F E D C B A 
E D C B A 
D C B A 
C B A 
B A 
A 
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.