+ 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?
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 =
+ 1
Thank you very much! It finally works.