title: Python: How to loop through blocks of lines
body: <p>How to go through blocks of lines separated by an empty line? The file looks like the following:</p>
  
  <pre><code>ID: 1
  Name: X
  FamilyN: Y
  Age: 20
  
  ID: 2
  Name: H
  FamilyN: F
  Age: 23
  
  ID: 3
  Name: S
  FamilyN: Y
  Age: 13
  
  ID: 4
  Name: M
  FamilyN: Z
  Age: 25
  </code></pre>
  
  <p>I want to loop through the blocks and grab the fields Name, Family name and Age in a list of 3 columns:</p>
  
  <pre><code>Y X 20
  F H 23
  Y S 13
  Z M 25
  </code></pre>