title: Python get input from user - error "name not defined"
body: <p>I am fairly new to python. I am trying to get an input from the user running the script. Below is my script:</p>
  
  <pre><code>print("This is the program to test if we can get the user's input")
  users_input = input("Please enter your name. Please note that it should be a single word &gt;&gt;&gt; ")
  print("Is this your name? ", users_input)
  </code></pre>
  
  <p>Going through a few websites, this seems to be enough. But when i run this script and am asked to enter the name, I type the name and as soon as I press enter, I get the below error:</p>
  
  <pre><code>Traceback (most recent call last):
   File "test_input.py", line 3, in &lt;module&gt;
  users_input = input("Please enter your name. Please note that it should be a single word &gt;&gt;&gt; ")
    File "&lt;string&gt;", line 1, in &lt;module&gt;
  NameError: name 'John' is not defined
  </code></pre>
  
  <p>I was expecting it to print the name but rather I get this error. Not sure why.</p>