title: Way to print dictionary as a list
body: <p>So I have a dictionary which is like - </p>
  
  <pre><code> {'gaining': 34, 'Tinga': 42, 'small': 39, 'legs,': 13,}. 
  </code></pre>
  
  <p>Is there a way in which i can print it out so that it becomes a list like - </p>
  
  <pre><code> [ gaining, Tinga, small, legs ] 
  </code></pre>
  
  <p>So that only the keys are printed and not the values that go along it. Also is there a way to make the dictionary not work in arbitrary order - such that if two keys are repeated instead of giving it the value of the last one, we give it the value of the first one? </p>
  
  <p>eg;    </p>
  
  <pre><code>   {'gaining' : 34, 'Tinga' : 42, 'small : 39, 'legs,' : 13 'gaining' : 20}
  </code></pre>
  
  <p>When printed </p>
  
  <pre><code>   print dict['gaining']
  </code></pre>
  
  <p>The output comes as </p>
  
  <pre><code>   34 
  </code></pre>
  
  <p>instead of coming as </p>
  
  <pre><code>   20
  </code></pre>