title: How do I get user input from the keyboard in Python 2?
body: <p>I wrote a function in Python which prompts the user to give two numbers and adds them.
  It also prompts the user to enter a city and prints it. For some reason, when I run it in a shell, I get "name is not defined" after I enter the city. </p>
  
  <pre><code>def func_add(num1, num2):
     a = input("your city")
     print a
     return num1 + num2 
  </code></pre>