Python program to check Lowercase or Uppercase

# Take input from user
ch = input("Enter any character : ")[0]
# Check for uppercase, lowercase
if ch.isupper() :
    print("\n" + ch, "is UPPERCASE alphabet.")
elif ch.islower() :
    print("\n" + ch, "is LOWERCASE alphabet.")
else :
    print("\n" + ch, "is not an alphabet.")

OUTPUT:

Enter any caracter : k
k is LOWERCASE alphabet.

Leave a Comment