How execute a program or call a system command? Basics flyf35 — 22 July 2023 · Comments off Use the subprocess module in the standard library: import subprocess subprocess.run(["ls", "-l"]) python