-2

What does that 0 at the end of the output stand for?

screenshot

Screenshot

Mureinik
  • 297,002
  • 52
  • 306
  • 350
aNoNyMoUs
  • 61
  • 7
  • 2
    Look into the descriction of what the command does that you use... you print its returned value... – Patrick Artner Mar 27 '20 at 13:17
  • 1
    Instead of posting pictures of text, post the text. – Sayse Mar 27 '20 at 13:22
  • Thanks for helping out! I'm new here :) – aNoNyMoUs Mar 27 '20 at 13:28
  • 1
    [Please don't post screenshots of text](https://meta.stackoverflow.com/a/285557/354577). They can't be searched or copied and offer poor usability. Instead, paste the code as text directly into your question. If you select it and click the `{}` button or Ctrl+K the code block will be indented by four spaces, which will cause it to be rendered as code. – ChrisGPT was on strike Mar 27 '20 at 13:30

1 Answers1

2

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).

Mureinik
  • 297,002
  • 52
  • 306
  • 350