Sorting dictionary descending in Python
<p>I am new to Python and I was wondering if there is a more common way of sorting a dictionary in descending order than the way I'm doing it:</p>

<pre><code>sorted_dictionary = sorted(dict.items(), key=lambda x: -x[1])
</code></pre>