choice = input ("please enter a number between 1 and 3: ") while choice <"1" or choice>"3": try: choice = int(choice) #convert string to integer except: print ("That is not a number.") choice = input ("please try again... enter a number between 1 and 3: ") print("choice = ",choice)