+ 4
HELP!! I've encountered an Error and I don't know how to fix it.
Okay so I have this code here and it works perfectly well on my own Python Console on my laptop. But for some reason, whenever I run it using the console here on Sololearn, it sends out an Error Message. Can someone help me? I'll put you in the contributors section. This code is originally from Ayastar, and I only updated it. Still, I want it to work functionally well here on Sololearn just as it did on my own console. Thanks! https://code.sololearn.com/cb15jYrhm9o5/?ref=app
3 Answers
+ 3
I saved a copy and fixed it for you. Check out my comment on line 64 to understand further.
https://code.sololearn.com/c2U3eH45FvjC/?ref=app
I'm looking forward to being in that contributers section. lol đ
+ 3
Thanks Paul, you can expect thatđ
0
It suggests your global variable "hp1" isn't defined. Maybe move it above wherever it's being called and see if that fixes it.