MCQs > IT & Programming > Python > Which option creates a list of key value tuples from a dictionary sorted by value? d = {'a':1, 'b':2, 'c':3}

Python MCQs

Which option creates a list of key value tuples from a dictionary sorted by value? d = {'a':1, 'b':2, 'c':3}

Answer

Correct Answer: sorted(d.items(), key=operator.itemgetter(1))

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