title: Filter some lines from a textfile in python
body: <p>I am currently creating a list from an input file like this:</p>
  
  <pre><code>list = inputFile.read().splitlines()
  </code></pre>
  
  <p>Then after that manually iterating through and making a second list of the items/lines I care about (which are lines 2,6,10,14,18...). Is there a faster way to do this just with <code>splitlines()</code> so automatically, <code>list</code> contains only the lines I care about?</p>