title: How can I take every 3rd line in a text file, then after taking the value of line 3, take the next one?
body: <p>I am new to Python, so please help me...
  I want to take out every 3rd, 4th and 5th line in a text file. There are 22 lines in the text file
  Here is just an algorithm </p>
  
  <pre><code>For i in range (0,16):
  
      Name = Extract line 3 from text file.
  
      Distance= Extract line 4 from text file. 
  
      Time = Extract line 5 from text file.
  
      Calculations = (Distance/Time )
  
      Print (Name,Calculations, Time)
  
      Name = ''
  
      Distance = ''
  
      Time = ''
  </code></pre>
  
  <p>My problem is that I want the for loop to repeat, but next time name should extract line 6, distance line 7 and time line 8. The next time the loop repeats, it should change name into line 9 and so on...
  Hopefully my problem is clear enough, I am not sure how to phrase it.
  Thanks for all the help in advance... I am clueless</p>
  
  <p>By the way I am using python 3.3</p>