title: Python-Extract values after specific characters and store it in columns
body: <p>file output.txt</p>
  
  <pre><code>    First name: Petar
  
      Last Name: Petrovic
  
      Age: 32
  
      Country: USA        
      This is some description
  
      First name: Nick
  
      Last Name: Cave
  
      Age: 22
  
      Country: Brasil      
     This is another description
  </code></pre>
  
  <p>How, using a python script can I get the following output:</p>
  
  <pre><code> Petar Petrovic 32 USA
   Nick Cave 22 Brasil
  </code></pre>
  
  <p>So far, i have this</p>
  
  <pre><code>#!/bin/python
  import sys
  import os
  import re   
  with open ("output.txt", "r") as myfile:
  data=myfile.read()
  </code></pre>
  
  <p>I read that I could potentially use a dictionary but don't know how to implement that.</p>