Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. seatlist = ['Empty','Empty','Empty','Empty','Empty','Empty','Empty','Empty','Empty','Empty', ]
  2. selection = input("1: Assign Seat \n2: Print Seat Map\n3: Print Boarding Pass\n-1: Exit")
  3. count = 0
  4. while selection != "-1":
  5. if selection == "1":
  6. if count == 9:
  7. print("Sorry bruh, there's no space")
  8. else:
  9. name = input("What is your name?")
  10. seatlist[count] = name
  11. count += 1
  12. elif selection == "2":
  13. print("**********************************\nSeat 1:", seatlist[0], "\nSeat 2:", seatlist[1],
  14. "\nSeat 3:", seatlist[2], "\nSeat 4:", seatlist[3],"\nSeat 5:", seatlist[4], "\nSeat 6:", seatlist[5],
  15. "\nSeat 7:", seatlist[6], "\nSeat 8:", seatlist[7], "\nSeat 9:", seatlist[8], "\nSeat 10:", seatlist[9],"\n**********************************")
  16.  
  17. elif selection == "3":
  18. print(3)
  19.  
  20. elif selection == "-1":
  21. print("Have a nice day")
  22. 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