title: Python NameError: name 'hello' is not defined
body: <p>I get a NameError when I attempt to execute the following code with any possible input string in Python 3.0:</p>
  
  <pre><code>def onePerLine(str):
      for i in str:
          print(i)
  
  word=input("Enter a phrase or word: ")
  onePerLine(word)
  </code></pre>
  
  <p>The error is as follows:</p>
  
  <pre><code>Enter a phrase or word: hello
  
  Traceback (most recent call last):File"C:\Users\R\Documents\Python30\func2.py",line 5, in &lt;module&gt; word=input("Enter a phrase or word: ")
  
  File "&lt;string&gt;", line 1, in &lt;module&gt;
  
  NameError: name 'hello' is not defined 
  </code></pre>
  
  <p>How do i fix this and get my code to run? 
  PS: I'm a newbie to python and to programming in general. Any assistance would be appreciated. </p>