import subprocess subprocess.call(["sudo", "apt", "update"])
#!/bin/sh python python_script.py
import subprocess subprocess.call(["./shell.sh"]) # Make sure that "shell.sh" has "+x" permissions