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.")
    print(ch, "is not an Alphabet.")


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

Sharing Is Caring

Leave a Comment