Advertisement
exDotaPro

15_june_2019_3_film_premiere

Jan 21st, 2020
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.93 KB | None | 0 0
  1. movie_name = input()
  2. package = input()
  3. tickets = int(input())
  4.  
  5. price = 0
  6. discount = 0
  7. is_discount = False
  8.  
  9. if movie_name == 'John Wick':
  10.     if package == 'Drink':
  11.         price = 12
  12.     elif package == 'Popcorn':
  13.         price = 15
  14.     elif package == 'Menu':
  15.         price = 19
  16.  
  17. elif movie_name == 'Star Wars':
  18.     if package == 'Drink':
  19.         price = 18
  20.     elif package == 'Popcorn':
  21.         price = 25
  22.     elif package == 'Menu':
  23.         price = 30
  24.  
  25.     if tickets >= 4:
  26.         is_discount = True
  27.         discount = 0.70
  28.  
  29. elif movie_name == 'Jumanji':
  30.     if package == 'Drink':
  31.         price = 9
  32.     elif package == 'Popcorn':
  33.         price = 11
  34.     elif package == 'Menu':
  35.         price = 14
  36.  
  37.     if tickets == 2:
  38.         is_discount = True
  39.         discount = 0.85
  40.  
  41. if is_discount:
  42.     bill = (price * tickets) * discount
  43. else:
  44.     bill = price * tickets
  45.  
  46. print(f'Your bill is {bill:.2f} leva.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement