Python Condition , 9. Write a Python program to input any character and check whether it is alphabet, digit or special character.
9. Write a Python program to input any character and check whether it is alphabet, digit or special character. Solution :- a = input("Enter the value :-") if (a>='a'and a<='z') or(a>='A' and (a<='Z')): print("It is Character") elif(a>='1'and a<='9'): print("It is number") else: print("It is Special Character") Output :-