SHARE
TWEET

Untitled

a guest Sep 20th, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. budget = float(input())
  2. supernumerary = int(input())
  3. price_clothes_per_supernumerary = float(input())
  4. clothes_total_price = supernumerary * price_clothes_per_supernumerary
  5. decor = budget * 0.1
  6. if supernumerary > 150:
  7.    clothes_total_price = clothes_total_price * 0.9
  8. money_needed = decor + clothes_total_price
  9. if money_needed > budget:
  10.     print('Not enough money!')
  11.     money_missed = money_needed - budget
  12.     print(f'Wingard needs {money_missed:.2f} leva more.')
  13. else:
  14.     print('Action!')
  15.     money_left = budget - money_needed
  16.     print(f'Wingard starts filming with {money_left:.2f} leva left.')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top