← back to unit
Medium
# variables
Calculate the Battle Score
A hero's battle score is calculated from three things: their attack (worth double!), their defense, and a fatigue penalty that gets subtracted. ⚔️
You're given attack, defense, and fatigue_penalty. Store the formula's result in a variable called score (attack times 2, plus defense, minus fatigue_penalty), then print it.
💡 need a hint?
var-battle-score.py🔒 given lines are locked — write your code in between
loading...