isdigit or isalpha and so forth boy_Input = input("please input your want to do something") if boy_Input.isalpha(): print("you want to something") elif boy_Input.isdigit(): print("something is interesting") else: print("input error")