MCQs > IT & Programming > Python > How can a list of dictionaries be sorted by the values of the dictionaries?

Python MCQs

How can a list of dictionaries be sorted by the values of the dictionaries?

Answer

Correct Answer: from operator import itemgetter sortedlist = sorted(a_list_of_dicts, key = itemgetter('name'))

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it