Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- seatlist = ['Empty','Empty','Empty','Empty','Empty','Empty','Empty','Empty','Empty','Empty', ]
- selection = input("1: Assign Seat \n2: Print Seat Map\n3: Print Boarding Pass\n-1: Exit")
- count = 0
- while selection != "-1":
- if selection == "1":
- if count == 9:
- print("Sorry bruh, there's no space")
- else:
- name = input("What is your name?")
- seatlist[count] = name
- count += 1
- elif selection == "2":
- print("**********************************\nSeat 1:", seatlist[0], "\nSeat 2:", seatlist[1],
- "\nSeat 3:", seatlist[2], "\nSeat 4:", seatlist[3],"\nSeat 5:", seatlist[4], "\nSeat 6:", seatlist[5],
- "\nSeat 7:", seatlist[6], "\nSeat 8:", seatlist[7], "\nSeat 9:", seatlist[8], "\nSeat 10:", seatlist[9],"\n**********************************")
- elif selection == "3":
- print(3)
- elif selection == "-1":
- print("Have a nice day")
- selection = input("1: Assign Seat \n2: Print Seat Map\n3: Print Boarding Pass\n-1: Exit")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement