Advertisement
Spocoman

01. Cinema

Dec 20th, 2021
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. screening_type = input()
  2. rows = int(input())
  3. columns = int(input())
  4. income = 0
  5.  
  6. if screening_type == 'Premiere':
  7.     income = rows * columns * 12
  8.  
  9. elif screening_type == 'Normal':
  10.     income = rows * columns * 7.5
  11. else:
  12.     income = rows * columns * 5
  13.  
  14. print(f'{income:.2f} leva')
  15.  
  16.  
  17. Тарикатско решение:)
  18.  
  19. data = {'Premiere': 12, 'Normal': 7.5, 'Discount': 5}
  20. print(f'{data[input()] * int(input()) * int(input()):.2f} leva')
  21.  
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement