title: Any way to stop a command from returning exit codes?
body: <p>My goal is to write a simple python script which prints a string that includes a result from a shell command line, in this case for example will be &quot;uname&quot;. If I do</p>
  <pre><code>import os
  unameCommand=(os.system(&quot;uname&quot;))
  print(&quot;This OS is {}.&quot;.format(unameCommand))
  </code></pre>
  <p>the result will look like</p>
  <pre><code>$ python3 /path/to/file.py
  Darwin
  This OS is 0
  </code></pre>
  <p>but what I am expecting looks something like this:</p>
  <pre><code>$ python3 /path/to/file.py
  This OS is Darwin
  </code></pre>
  <p>There is this exit code that I assume is causing these problems and therefore, like the question suggests, any way to stop a command from returning exit codes? If not, any other way for me to achieve the expected result?</p>