Answers for "python do shell command linux"

1

command for python shell

write python and press enter in terminal. 

A Python Prompt comprising of three greater-than symbols >>> appears.
Posted by: Guest on October-07-2021
1

shell command python

import subprocess
subprocess.run(["ls", "-l"])
Posted by: Guest on June-02-2020

Python Answers by Framework

Browse Popular Code Answers by Language