title: Convert Array to formatted Dictionary in Python
body: <p>I have an array which looks as below</p>
  
  <pre><code>array = [
          'NAME          STATUS   ROLES    AGE     VERSION',
          'master0.com   Ready    master   4d17h   v1.14.6+0a21dd3b3',
          'master1.com   Ready    master   4d17h   v1.14.6+0a21dd3b3'
          ]
  </code></pre>
  
  <p>The data in above Array including the headers is dynamic. I would like to know the best approach to covert into a hash which looks like follows</p>
  
  <pre><code>        [{'NAME': 'master.com',
            'STATUS': 'Ready',
            'ROLES': 'master'},
           {'Name': 'master2.com',
            'STATUS': 'Ready',
            'ROLES': 'master'}
          ]
  </code></pre>
  
  <p>I'm also posting a solution which does work, but I'm sure there is a best and better approach to do this please suggest.</p>
  
  <p>Any help with this is much appreciated</p>