You can see this using input strings, and the python2 interpreter is being used.
The Python stack supports both python2 and python3, the default interpreter is python2
You can either change your command to
python3 <yourfile>.py
and the the python3 interpreter will be used and all should be OK
or use raw_input( ) rather than input( ) if you wish to continue using the python2 interpreter
If you have other errors, you can usually find assistance on the web searching the error shown