Write a program in python to print whether a given character is an uppercase or a lowercase or a digit or any other character
Answers
Answered by
8
Answer:
mrk me as brainliest plzzzz
# 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.")
Similar questions