Coding in Python 09 – Writing Scripts

In video number 9 of the Coding in Python series, finally start writing actual scripts instead of using only the Python shell.

YouTube player

Open an editor to create a Python file (Linux shell command)

nano sample_script.py

Simple Python script

#!/usr/bin/env python3

print("Python is awesome!")

Make a script executable (Linux command)

chmod +x sample_script.py

Execute a Python script (Linux command)

./sample_script.py

Brand-New Course!

Support Linux Learning and get yourself some cool Linux swag!

Check out the Shop!

Support Linux Learning and get yourself some cool Linux swag!

Support Linux Learning

Consider becoming a Patron and/or Channel Member to receive exclusive perks!


Receive 5% off an LPI exam voucher!