Python program to check Alphabet or not

ch = input("Enter any character: ")
# check charater is alphabet or not
if((ch>='a' and ch<= 'z') or (ch>='A' and ch<='Z')):
    print(ch, "is an Alphabet.")
else:
    print(ch, "is not an Alphabet.")

OUTPUT:

Enter any character: L
K is an Alphabet.
Enter any character: 6
5 is not an Alphabet.

Leave a Comment