title: Read python output from another python script
body: <p>I have two python files, one contains code which generates an output and the other needs to read it. The generation code is:</p>
  
  <pre><code>b=5
  return b
  </code></pre>
  
  <p>The reading code is:</p>
  
  <pre><code>import os
  c= os.system("test.py")
  print (c)
  </code></pre>
  
  <p>When I run this, the output is 1. I don't understand why this isn't 5, any advise on how to fix this please?</p>