title: Python Convert Lines into a list
body: <p>I use ifconfig command with awk to catch system's ip addresses</p>
  
  <pre><code>$ ifconfig  | grep -E 'inet.[0-9]' | awk '{ print $2}'
  
  127.0.0.1
  192.168.8.2
  </code></pre>
  
  <p>How to convert o/p into a list using python ?</p>