Ascending discending

>>> sorted(student_tuples, key=itemgetter(2), reverse=True)
[('john', 'A', 15), ('jane', 'B', 12), ('dave', 'B', 10)]

Here is what the above code is Doing:
1. The sorted() function takes a single argument which is the list to be sorted.
2. The key=itemgetter(2) specifies the sort order.
3. The reverse=True specifies that the sort order should be reversed.