How do you sort a dictionary by value in python?

Posted by Rohit Kumar | Updated on

If you want to sort this dictionary by values (i.e., the age), you must use another data structure such as a list, or an ordered dictionary.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers