+ 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

11th May 2018, 2:34 PM
Eris Ashwood
Eris Ashwood - avatar
3 odpowiedzi
+ 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 😋
11th May 2018, 3:54 PM
Paul Grasser
Paul Grasser - avatar
+ 3
Thanks Paul, you can expect that😆
11th May 2018, 9:02 PM
Eris Ashwood
Eris Ashwood - avatar
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.
11th May 2018, 3:09 PM
Xpl0it
Xpl0it - avatar