run shell command from python os code example
Example 1: call shell script from python
import subprocess
subprocess.call(["./shell.sh"])
# Make sure that "shell.sh" has "+x" permissions
Example 2: python execute shell command
python3 yourcode.py
or
python yourcode.py