I need help in this simple program! I don't know why I'm getting this error! I'm new to python!
This is what I typed:
This is what I typed:
print ('WHAT IS YOUR NAME?') name = input() print (name)This was the result:
Output:WHAT IS YOUR NAME?
kevin
Error:Traceback (most recent call last):
File "C:/Python27/pye.py", line 2, in <module>
name = input()
File "<string>", line 1, in <module>
NameError: name 'kevin' is not defined
WHAT IS WRONG HERE?