Write a program (WAP) in PYTHON to read two numbers from keyboard(User Input) to know a character is Alphabet or Not.
ch = input("Enter a Character:\n ")
if((ch>='A' and ch<= 'Z') or (ch>='a' and ch<='z')):
print(ch, "is an ALPHABET")
else:
print(ch, "is not an ALPHABET")
Try it Yourself ➠
Output :-
When the above PYTHON program is compile and executed, it will produce the following result,
i. Alphabet - Uppercase
ii. Alphabet - Lowercase
iii. Not alphabet - Number
iv. Not alphabet - Special Character
Must Read :-




