python how to write shell command code example Example: shell command python import subprocess subprocess.run(["ls", "-l"])