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
You want to use raw_input() instead. input() expects Python, which then gets evaled.
raw_input()
input()
eval