r/CodingForBeginners • u/fyknite • 26d ago
Day 4 learning_Python (Decided to continue to the next lesson and thus wrote this):
The most important line on tis one is on #9.
6
Upvotes
r/CodingForBeginners • u/fyknite • 26d ago
The most important line on tis one is on #9.
2
u/Lucky-Thought9889 25d ago
Wow, that's pretty cool!
2
u/johlae 17d ago
Cool, but the name of your function doesn't fit what it's doing. It doesn't calculate damage. It calculates the impact of damage on health. I'd call the function recalculate_health instead, or impact_damage_on_health.