I keep getting an error when trying to run my code:
Traceback (most recent call last):
File "E:\healthtest.py", line 3, in <module>
if raw_input() == "Hit":
NameError: name 'raw_input' is not defined
I do not know what I did wrong, but here is the code I have been using.
health = "10"
if raw_input() == "Hit":
health = health - 5
I hope you can help me, and thanks in advance.