python format subprocess output

Solutions on MaxInterview for python format subprocess output by the best coders in the world

showing results for - "python format subprocess output"
Giorgia
24 Jun 2018
1import subprocess
2
3output = subprocess.check_output("cat /etc/os-release", shell=True)
4output = output.decode("utf-8")
5print("Version info: ",output)