jak spustit skript v pythonu
# Save the script in a file with .py extension
# run the script using the below command
python fileName.py
spustit python.py soubor
# save a file in text editor with .py
# open terminal, and change directories
# run the following command:
python3 file.py
jak spustit bash příkazy v jazyce python skript
import subprocess
subprocess.call(["sudo", "apt", "update"])
volat skript z pythonu
import subprocess
subprocess.call(["./shell.sh"])
# Make sure that "shell.sh" has "+x" permissions