file' directoryit contains the compiled byte code version of module see for more on modules scripts assuming your platform supports the #trickyour solution will look like the following (although your #line may need to list another path on your machinenote that these lines are significant under the windows launcher shipped and installed with python where they are parsed to select version of python to run the scriptalong with default settingsee appendix for details and examples #!/usr/local/bin/python print('hello module world!'chmod + module py (or #!/usr/bin/env pythonmodule py hello module world errors the following interaction (run in python xdemonstrates the sorts of error messages you'll get when you complete this exercise reallyyou're triggering python exceptionsthe default exception-handling behavior terminates the running python program and prints an error message and stack trace on the screen the stack trace shows where you were in program when the exception occurred (if function calls are active when the error happensthe "tracebacksection displays all active call levelsin and part viiyou will learn that you can catch exceptions using try statements and process them arbitrarilyyou'll also see there that python includes full-blown source code debugger for special errordetection requirements for nownotice that python gives meaningful messages when programming errors occurinstead of crashing silentlypython * traceback (most recent call last)file ""line in zerodivisionerrorint division or modulo by zero spam traceback (most recent call last)file ""line in nameerrorname 'spamis not defined breaks and cycles when you type this codel [ append(lyou create cyclic data structure in python in python releases before the python printer wasn' smart enough to detect cycles in objectsand it would print appendix dsolutions to end-of-part exercises