char=input("press any key:")
if(char.isalpha()):
print ("the user has entered a character")
if(char.isdigit()):
print("the user has entered a digit")
if(char.isspace()):
print ("the user entered a white space character")
To embed this project on your website, copy the following code and paste it into your website's HTML: