← back to unit
Easy
# variables
Level Up!
When a hero levels up, their max HP doubles! Update the variable and announce the new value. 💪
You're given the current HP. Reassign hp to double itself, then print the message New HP: <hp>.
For example, 50 → print New HP: 100.
💡 need a hint?
var-level-up.py🔒 given lines are locked — write your code in between
loading...