I read this somewhere a while ago but cant seem to find it. I am trying to find a command that will execute commands in the terminal and then output the result.
For
for python3 use subprocess
import subprocess s = subprocess.getstatusoutput(f'ps -ef | grep python3') print(s)