write a python program to chk wheather the given number is digit alphabet or charecter
Answers
Answered by
0
Explanation:
# Take character input from user ch = input("Enter any character : ") # Check for alphabet and digit. if ch[0]. isalpha() : print("\n" + ch[0], "is A ALPHABET.") elif ch[0]. isdigit() : print("\n" + ch[0], "is A DIGIT.") else : print("\n" + ch[0], "is A SPECIAL CHARACTER
Similar questions