title: Why is there a NameError when I ask the user for input using input()?
body: <p>I have an error that looks like this once I input Chelsea into my Python script. I really can't see what is going wrong as I've used input functions before in Python and this has never happened before.</p>
  <pre><code>  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
  NameError: name 'Chelsea' is not defined
  </code></pre>
  <p>The code looks like this</p>
  <pre><code>teamDic = {'Chelsea' : 2}
  a = input('Enter your name:')
  print(teamDic[a])
  </code></pre>