Advertisement
veronikaaa86

01. Cinema

May 22nd, 2022
1,080
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. type_tickets = input()
  2. rows = int(input())
  3. cols = int(input())
  4.  
  5. all_seats = rows * cols
  6.  
  7. price = 0
  8. if type_tickets == "Premiere":
  9.     price = 12
  10. elif type_tickets == "Normal":
  11.     price = 7.50
  12. elif type_tickets == "Discount":
  13.     price = 5
  14.  
  15. result = all_seats * price
  16.  
  17. print(f"{result:.2f} leva")
Advertisement
RAW Paste Data Copied
Advertisement