how to unrun a python script in the terminal code example
Example 1: how to run a python script
# Save the script in a file with .py extension
# run the script using the below command
python fileName.py
Example 2: how to run mac terminal from python script
from applescript import tell
#set what command you want to run here
yourCommand = 'ls'
tell.app( 'Terminal', 'do script "' + yourCommand + '"')