Question #289991

program to check wether character is uppercase or lowercase alphabet


Expert's answer

ch = input()
if ch.lower() == ch and ch.upper() != ch:
	print(f"lowercase")
elif ch.lower() != ch and ch.upper() == ch:
	print(f"uppercase")
else:
	print("other")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS