FlightType=input("Which flight would you like to fly? Type '2 Seater', '4 Seater', or 'Historic'.")
# No validation included for the input
FlightLen=input("Would you like to book the '30' minutes flight or the '60'")
# No validation included for the input
if (FlightLen==30):
MaxSlots=(600/FlightLen)
elif (FlightLen==60):
MaxSlots=(600//FlightLen)
print (MaxSlots)
When I run the code, why does the following error message appear?
See Question&Answers more detail:osNameError: name 'MaxSlots' is not defined