title: UPDATE:Sorting a list from a for output from highest to lowest in python
body: <pre><code>    for x in letters:
           frequency[x]+=1
      for x in frequency:
          print x,frequency[x],frequency[x]/float(n)    
  </code></pre>
  
  <p>Sorry but I'm fairly new to programming and everything and I'm trying to get the output to be sorted from highest value of <code>frequency[x]/float(n)</code>  to lowest value. Is there any method of being able to sort it just through the printing command? </p>
  
  <p>Thanks very much!</p>