Guest User

Untitled

a guest
Aug 15th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. lost_fights = int(input())
  2. price_helmet = float(input())
  3. price_sword = float(input())
  4. price_sheild = float(input())
  5. price_armor = float(input())
  6.  
  7. def price_braked_item(lost_fights, count, price):
  8. result = (lost_fights // count) * price
  9. return result
  10.  
  11. total_price = price_braked_item(lost_fights, 2, price_helmet) + \
  12. price_braked_item(lost_fights, 3, price_sword) + \
  13. price_braked_item(lost_fights, 6, price_sheild) + \
  14. price_braked_item(lost_fights, 12, price_armor)
  15.  
  16. print(f'Gladiator expenses: {total_price:.2f} aureus')
Add Comment
Please, Sign In to add comment