Answers for "Ascending discending"

1

Ascending discending

>>> sorted(student_tuples, key=itemgetter(2), reverse=True)
[('john', 'A', 15), ('jane', 'B', 12), ('dave', 'B', 10)]
Posted by: Guest on July-21-2021

Python Answers by Framework

Browse Popular Code Answers by Language