Apr-05-2017, 07:12 PM
flyTo = input("Where would you like to fly? ") if flyTo == flyTo.isdigit(): print("You accidentally added a number") elif flyTo == flyTo.isalpha(): print("Okay, we are going to {} ".format(flyTo)) else: print("??")k don't laugh
no matter what is entered,
it says: "??"
I want it to check if there are numbers.. and if so, to say "you accidentally added a number"
how would i proceed with allowing letters, not numbers?
thanks