Code Snippet : Subprocess

SaurabhG
Mar 21, 2023

--

import subprocess

# s = subprocess.check_output([“echo”, “Hello World!”], shell=True)

# s = subprocess.check_output([“dir”], shell=True)

# s = subprocess.check_output([“dir”], shell=True,text=True)

# s = subprocess.check_output([“cdk”, “ — version”], shell=True,text=True)

# s = subprocess.check_output([“streamlit”, “version”], shell=True,text=True)

# print(s)

--

--

SaurabhG

I am an enthusiastic learner. Always want to challenge my last learning & keep hunting for new learning. about.me/saurabh.gangrade