Advertisement
Spocoman

Film Premiere

Feb 22nd, 2022 (edited)
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.88 KB | None | 0 0
  1. movie = input()
  2. movie_pack = input()
  3. tickets = int(input())
  4. ticket_price = 0
  5.  
  6. if movie == "John Wick":
  7.     if movie_pack == "Drink":
  8.         ticket_price = 12
  9.     elif movie_pack == "Popcorn":
  10.         ticket_price = 15
  11.     elif movie_pack == "Menu":
  12.         ticket_price = 19
  13. elif movie == "Star Wars":
  14.     if movie_pack == "Drink":
  15.         ticket_price = 18
  16.     elif movie_pack == "Popcorn":
  17.         ticket_price = 25
  18.     elif movie_pack == "Menu":
  19.         ticket_price = 30
  20. elif movie == "Jumanji":
  21.     if movie_pack == "Drink":
  22.         ticket_price = 9
  23.     elif movie_pack == "Popcorn":
  24.         ticket_price = 11
  25.     elif movie_pack == "Menu":
  26.         ticket_price = 14
  27.  
  28. if movie == "Star Wars" and tickets >= 4:
  29.     ticket_price *= 0.70
  30. elif movie == "Jumanji" and tickets == 2:
  31.     ticket_price *= 0.85
  32.  
  33. print(f"Your bill is {ticket_price * tickets:.2f} leva.")
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement