Advertisement
Guest User

Untitled

a guest
May 25th, 2020
600
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. budget = float(input())
  2. people = int(input())
  3. single_outfit_price = float(input())
  4. decor_price = budget * 0.1
  5. outfits_price = people * single_outfit_price
  6. if people > 150:
  7. outfits_price = outfits_price - (outfits_price * 0.1)
  8. full_sum = decor_price + outfits_price
  9. if full_sum > budget:
  10. needed_money = full_sum - budget
  11. print("Not enough money!")
  12. print(f"Wingard needs {needed_money:.2f} leva more.")
  13. elif budget > full_sum:
  14. money_left = budget - full_sum
  15. print("Action!")
  16. print(f"Wingard starts filming with {money_left:.2f} leva left.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement