1,234
edits
Changes
→PART 2 - Running System Commands with Subprocess
</source>
:#This next step is going to communicate with the process and get the stdout and stderr from the command we previously.<source>
# The above stdout is stored in bytes
# Convert stdout to a string and strip off the newline characters
stdout = stdoutoutput[0].decode('utf-8').strip()
stdout
</source>