How to Solve NameError: name 'raw_input' is not defined -- past
Solution: Import the 'raw_input' module
To Solve the error, add the following line to the top of your code.
from past.builtins import raw_input
For more information:
Python past raw_input