title: Read 3rd line of file and then every
body: <p>I have a huge file which looks like this:</p>
  
  <pre><code>Name: Block of line 1
  Data: Block of line 2
  **Important line 3**
  Not important line 4
  Not important line 5
  **Another important line 6**
  Not important line 7
  
  Name: Block of line 1
  Data: Block of line 2
  **Important line 3**
  Not important line 4
  Not important line 5
  **Another important line 6**
  Not important line 7
  
  Name: Block of line 1
  Data: Block of line 2
  **Important line 3**
  Not important line 4
  Not important line 5
  **Another important line 6**
  Not important line 7
  </code></pre>
  
  <p>In python I want to read every 3rd and 6th line <em>or when I use .read() that would make it line 2 and 5</em></p>
  
  <p>My code only prints the first block, so ideally I would like to loop over it:</p>
  
  <pre><code>files = open(fo, 'r')
  for i, line in enumerate(files):
      if i == 2:
      print line
  elif i == 5:
          print line
          break
  </code></pre>