Aug-18-2020, 12:16 PM
def main():
LPL = "LPL"
BOH = "BOH"
print("please enter the option you would like to select:")
print("1:Enter Airport details")
print("2:Enter Flight details")
print("3:Enter price plan and data")
print("4:clear data")
print("5: Quit")
option = input("enter the number of the option you would like to select: ")
if option == '1':
airport = input("Please enter the three letter code of the Uk airport: ")
if airport !=LPL or airport !=BOH:
main()
print("The code you entered was not for a uk airport, you will now be returned to the main menu")
if airport ==LPL or BOH:
overseas = input("Please enter the three letter code of the overseas airport: ")
main()
in the if statements about the airports it always comes back as false and i dont know how to stop this
thanks
LPL = "LPL"
BOH = "BOH"
print("please enter the option you would like to select:")
print("1:Enter Airport details")
print("2:Enter Flight details")
print("3:Enter price plan and data")
print("4:clear data")
print("5: Quit")
option = input("enter the number of the option you would like to select: ")
if option == '1':
airport = input("Please enter the three letter code of the Uk airport: ")
if airport !=LPL or airport !=BOH:
main()
print("The code you entered was not for a uk airport, you will now be returned to the main menu")
if airport ==LPL or BOH:
overseas = input("Please enter the three letter code of the overseas airport: ")
main()
in the if statements about the airports it always comes back as false and i dont know how to stop this
thanks