Advertisement
dkyoseff

Conditional Statements Advanced - Exercise / 01. Cinema

Jul 26th, 2022
788
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. type = str(input())
  2. row = int(input())
  3. column = int(input())
  4.  
  5. price_last = 0
  6.  
  7. if type == "Premiere":
  8.     price_last = (row * column) * 12
  9. elif type == "Normal":
  10.     price_last = (row * column) * 7.50
  11. elif type == "Discount":
  12.     price_last = (row * column) * 5.00
  13.  
  14.  
  15. print(f'{price_last:.2f} leva')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement