What does the 0 stand for at the end of the text which os.system() returns?
What does that 0 at the end of the output stand for?
Solution
os.system returns the exit status of the process you executed. Since the cat command succeeded, it's exit code is 0, and that's what you see from print(x).