test = input("What's your name")
print(test)
When I run this, it gives me an error if I type in, for example, william
File "C:\test.py", line 3, in <module>
test = input("What's your name")
File "<string>", line 1, in <module>
NameError: name 'william' is not defined
The only thing that works is if I type it with quotes in the interpreter, but that's not how it's supposed to work. What's causing this problem?