+ 1

Python error

https://code.sololearn.com/cuJ02F6j4nG2 I wrote the code for the textual fantasy game in lessons, using also parts of the code by rdhelli, but when I examine the orc after hitting it, this error shows up NameError: name 'health_line' is not defined can someone explain it to me?

24th May 2019, 12:37 PM
Giovanni Maria Tosi
Giovanni Maria Tosi - avatar
2 Answers
+ 4
Jesus. I searched the error for half an hour. I just didn't see it. health_line == "Not even a scratch!" The == needs to be a =
24th May 2019, 1:40 PM
Anna
Anna - avatar
+ 1
Thank you very much! It finally works.
24th May 2019, 1:49 PM
Giovanni Maria Tosi
Giovanni Maria Tosi - avatar