6. Exit """) choice = input("Enter choice: ") try: choice = int(choice) except ValueError: print("It is not integer") continue if choice == 1: bike.displayStock() choice = "A" elif choice == 2: customer.rentalTime_b = bike.rentHourly( customer.requestVehicle("bike")) customer.rentalBasis_b = 1 main_menu = True print("----------------") elif choice == 3: customer.rentalTime_b = bike.rentDaily( customer.requestVehicle("bike")) customer.rentalBasis_b = 2 main_menu = True print("----------------") elif choice == 4: customer.bill = bike.returnVehicle(customer.returnVehicle("bike"), "bike") customer.rentalBasis_b, customer.rentalTime_b, customer.bikes = 0, 0, 0 main_menu = True elif choice == 5:
5. Main Menu 6. Exit """) choice = input("Enter choice: ") try: choice = int(choice) except ValueError: print("It is not integer") continue if choice == 1: bike.displayStock() choice = "A" elif choice == 2: customer.rentalTime_b = bike.rentHourly(customer.requestVehicle("bike")) customer.rentalBasis_b = 1 main_menu = True print("----------------") elif choice == 3: customer.rentalTime_b = bike.rentDaily(customer.requestVehicle("bike")) customer.rentalBasis_b = 2 main_menu = True print("----------------") elif choice == 4: customer.bill = bike.returnVehicle(customer.returnVehicle("bike"),"bike") customer.rentalBasis_b, customer.rentalTime_b, customer.bikes = 0,0,0 main_menu = True elif choice == 5: main_menu = True elif choice ==6: