Triangle of Alphabets in Python || Patterns || Python

In this we are going to see a basic program about Triangle of Alphabets in Python Programming Language.


# Give ASCII Value For The Alphabet For A-Z (65-90)
# And For a-z (97-122)

start_alphabet = int(input("Enter ASCII value of the starting alphabet: "))
end_alphabet = int(input("Enter ASCII value of the ending alphabet: "))
for i in range(start_alphabet, end_alphabet):
    k = i
    for j in range(start_alphabet, i+1):
        print(chr(k), end=" ")
        k = k+1
    print()

# Coded By DHIRAJ SHELKE

#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post