cara mengeksekusi perintah bash dalam skrip python

import subprocess
subprocess.call(["sudo", "apt", "update"])
Common Melba Finch