So, if you're getting the error NameError: name '' is not defined when using input for a string but the same code works fine in your IDE, you are probably using Python 2.7 or older.
In order to resolve this, you need to put your responses to the input prompt in single quotes. This is not an issue with numerical data or in 3.x versions of Python.