title: Creating dictionary from list in Python with first item in list as header
body: <p>I am trying to create a list of dictionary with the lists below. </p>
  
  <pre><code>a = [["Name","Mary","Tom","John"],["Age","21","23","12"],["Gender","F","M","M"]]
  </code></pre>
  
  <p>I would like the output to be:</p>
  
  <pre><code>a_list=[{"Name":"Mary", "Age":"21", "Gender":"F"},{"Name":"Tom", "Age":"23", "Gender":"M"},{"Name":"John", "Age":"12", "Gender":"M"}]
  </code></pre>
  
  <p>I tried to use <code>zip</code> but could not get it to work. Please help! </p>