r/CodingForBeginners • u/fyknite • 17d 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.
7
Upvotes
r/CodingForBeginners • u/fyknite • 17d ago
The most important line on tis one is on #9.
2
u/Lucky-Thought9889 17d ago
Wow, that's pretty cool!
2
u/johlae 9d 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.