MCQs > IT & Programming > Python > What would the 'sorted_tel' be in the following code: tel = {'jack': 4098, 'sape': 5139, 'bill': 3678, 'mike': 2122} sorted_tel = sorted(tel.items(), key=lambda x: x[1])

Python MCQs

What would the 'sorted_tel' be in the following code:

tel = {'jack': 4098, 'sape': 5139, 'bill': 3678, 'mike': 2122}

sorted_tel = sorted(tel.items(), key=lambda x: x[1])

Answer

Correct Answer: A list of Tuples sorted by the second element.

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