title: How to send a Python Variable to shell commands?
body: <p>I am trying to send a variable from my code in Python to a shell command in Ubuntu. Can anyone help me with how to do that? Currently, I have</p>
  
  <pre><code>import os
  s=5
  command = os.popen('stress -c 5 -i 1 -m 1 --vm-bytes 128M -t s')
  </code></pre>
  
  <p>I want to send the <code>s</code> variable to this command instead of directly say the time of time-out. </p>