Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. budget = float(input())
  2. statists = int(input())
  3. price_dress_per_one = float(input())
  4. decor = budget * .1
  5. if statists >= 150:
  6. price_dress = price_dress_per_one * .90 * statists + decor
  7. else:
  8. price_dress = price_dress_per_one * statists + decor
  9. if price_dress >= budget:
  10. print('Not enough money!')
  11. print(f'Wingard needs {price_dress - budget:.2f} leva more.')
  12. else:
  13. print('Action!')
  14. print(f'Wingard starts filming with {budget-price_dress:.2f} leva left.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement