Advertisement
Spocoman

Football Kit

May 29th, 2022
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1. shirt_price = float(input())
  2. sums = float(input())
  3.  
  4. shorts_price = shirt_price * 0.75
  5. socks_price = shorts_price * 0.20
  6. sneakers_price = (shirt_price + shorts_price) * 2
  7. price = (shirt_price + shorts_price + socks_price + sneakers_price) * 0.85
  8.  
  9. if sums > price:
  10.     print("No, he will not earn the world-cup replica ball.")
  11.     print(f"He needs {sums - price:.2f} lv. more.")
  12. else:
  13.     print("Yes, he will earn the world-cup replica ball!")
  14.     print(f"His sum is {price:.2f} lv.")
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement