title: Get output of system ping without printing to the console
body: <p>I want to call <code>ping</code> from Python and get the output.  I tried the following:</p>
  
  <pre><code>response = os.system("ping "+ "- c")
  </code></pre>
  
  <p>However, this prints to the console, which I don't want.</p>
  
  <pre class="lang-none prettyprint-override"><code>PING 10.10.0.100 (10.10.0.100) 56(86) bytes of data.
  64 bytes from 10.10.0.100: icmp_seq=1 ttl=63 time=0.713 ms
  64 bytes from 10.10.0.100: icmp_seq=2 ttl=63 time=1.15 ms
  </code></pre>
  
  <p>Is there a way to not print to the console and just get the result?</p>