title: "NameError: name '' is not defined" after user input in Python
body: <p>I'm completely lost as to why this isn't working. Should work precisely, right?</p>
  
  <pre><code>UserName = input("Please enter your name: ")
  print ("Hello Mr. " + UserName)
  raw_input("&lt;Press Enter to quit.&gt;")
  </code></pre>
  
  <p>I get this exception:</p>
  
  <pre><code>Traceback (most recent call last):  
    File "Test1.py", line 1, in &lt;module&gt;
      UserName = input("Please enter your name: ")
    File "&lt;string&gt;", line 1, in &lt;module&gt;
  NameError: name 'k' is not defined  
  </code></pre>
  
  <p>It says <code>NameError 'k'</code>, because I wrote <code>'k'</code> as the input during my tests. I've read that the print statement used to be without parenthesis but that has been deprecated right?</p>