import os os.system("ma Commande") #Exemple: os.system("cd Documents")
import subprocess subprocess.call(["sudo", "apt", "update"])