shell commands in python 3 os code example Example: shell command python import subprocess subprocess.run(["ls", "-l"])