Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Creating variables
- lose_fight_count = int(input())
- helmet_price = float(input())
- sword_price = float(input())
- shield_price = float(input())
- armor_price = float(input())
- # Creating counter variables
- helmet_counter = 0
- sword_counter = 0
- shield_counter = 0
- armor_counter = 0
- for lost_fight in range(1, lose_fight_count + 1):
- if lost_fight % 2 == 0:
- helmet_counter += 1
- if lost_fight % 3 == 0:
- sword_counter += 1
- if lost_fight % 2 == 0:
- shield_counter += 1
- if shield_counter % 2 == 0 and shield_counter != 0:
- armor_counter += 1
- expenses = (helmet_price * helmet_counter) + (sword_price * sword_counter) + (shield_price * shield_counter) + (armor_price * armor_counter)
- print(f"Gladiator expenses:Autobiography {expenses:.2f} aureus")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement