Creating and Running Python Scripts
When starting a new project, create a directory and change into it:
mkdir directoryname
cd directoryname
Running a Python file:
- all Python files should have a .py suffix
python [Link]
Or, add to the top of each Python file:
#!usr/bin/env python
Then file can be run as:
>> ./ [Link]
If permissions are not correct:
chmod +x [Link]