title: writing to a file using one of the key as index and other key as value
body: <p>I am very new to programming as well as to python.</p>
  
  <p>I have been trying to implement it, but without success and would like ur help.</p>
  
  <p>I have a dictionary with weird key values. I need to use one of the key as my index number and other i.e second key as the value along with the value stored in the dictionary as the third column.</p>
  
  <p>For e.g if the dictionary is</p>
  
  <pre><code>{'Michael', 'Student&lt;matriculation no&gt;', 'marks obtained' :  40 }
  </code></pre>
  
  <p>the result should be like this</p>
  
  <pre><code>Name                  Admission no                 marks obtained
  
  Michael              matriculation no                    40
  
  sara                 matriculation no                    60
  </code></pre>
  
  <p>where matriculation no is the value extracted from the second key of the dictionary(different for each value) </p>
  
  <p>and this goes on for about 100 rows.</p>
  
  <p>kindly suggest a method to do this.</p>