Here is the list from the selection of cities:
city_choice = ["chicago","new york city","washington"]
Within the while loop below I am trying to have the user input a city from the list with an exception handler to let user know that isn't a choice and to select from the list. Why is the while loop not processing that?
while True:
try:
city = input("Please enter city: ")
except ValueError:
if city != [0,2]:
print("Sorry, that isn\'t a choice.")
#try again
continue
else:
#city was successfully selected
#Exit the loop.
break