[Solved] Creating text files in a python script


If your professor is running on Linux, Unix or Mac they you can just run the python file by a) ensuring it starts with a comment reading:

#!/usr/bin/env python

and then setting the file as executable with chmod +x scriptname.py

If he/she is running on windows either he/she will have to install python, (then they can run the script from the command line or by double clicking on it), or you will have to convert it to an executable by using one of py2exe, pyinstaller, etc.

The other option is to download pocket python install it with your script on a usb key and run it that way.

0

solved Creating text files in a python script