title: How to get the top 10 students in the class using Python dict
body: <p>I have a dictionary with student-name and marks</p>
  
  <pre><code>dict1 = {'name1': 34, 'name2':45, 'name3': 98, 'name4':34, 'name5': 66}
  </code></pre>
  
  <p>I want to get the top 10 student names along with their marks from the above dict. </p>
  
  <p><strong>Result:</strong> </p>
  
  <pre><code>name3 98
  name5 66
  name2 45
  name1 34
  name4 34
  </code></pre>
  
  <p>In case of multiple keys for same values, keys must be in alphabetical order (Ex: name1 and name4 are in alphabetical order for same value 34)</p>
  
  <p>How to get it done ?</p>