I'm receiving a dictionary from a server and have a few expected values to get back, however there are times that I get values I don't want to process my code for. Is there a way I can do this check without needing to repeat dict["travel"] !=
if dict["travel"] != "Bee" and dict["travel"] != "Fly" and dict["travel"] != "Bird":
print("Didn't receive flying animal of choice")
return
Ideally my code would look like...
if dict["travel"] != ("Bee" or "Fly" or "Bird")
print("Didn't receive flying animal of choice")
return