Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lost_fights = int(input())
- price_helmet = float(input())
- price_sword = float(input())
- price_sheild = float(input())
- price_armor = float(input())
- def price_braked_item(lost_fights, count, price):
- result = (lost_fights // count) * price
- return result
- total_price = price_braked_item(lost_fights, 2, price_helmet) + \
- price_braked_item(lost_fights, 3, price_sword) + \
- price_braked_item(lost_fights, 6, price_sheild) + \
- price_braked_item(lost_fights, 12, price_armor)
- print(f'Gladiator expenses: {total_price:.2f} aureus')
Add Comment
Please, Sign In to add comment