Advertisement
Guest User

film

a guest
Sep 15th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. buget = float(input())
  2. statist = int(input())
  3. cloths_price = float(input())
  4.  
  5. decor = buget * 0.1
  6. sum_cloths = cloths_price * statist
  7.  
  8. if statist > 150:
  9.     discount = sum_cloths * 0.1
  10.     cloths_sum = sum_cloths - discount
  11.     total = cloths_sum + decor
  12. else:
  13.     total = sum_cloths + decor
  14.  
  15. if buget >= total:
  16.     left = buget - total
  17.     print('Action!')
  18.     print(f'Wingard starts filming with {left:.2f} leva left.')
  19. else:
  20.     left = total - buget
  21.     print(f'Not enough money!')
  22.     print(f"Wingard needs {left:.2f} leva more.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement