I have this simple bit of code in visual studio using python
name = input("What is your name? ")
print (name)
However when I run it the string "What is your name" appears so I type in a name then the code breaks and a red line appears under the last bracket and i'm told
NameError was unhandled by user code
name 'John' is not defined
I have no idea why this is happening i'm following a tutorial