Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Ascending discending

>>> sorted(student_tuples, key=itemgetter(2), reverse=True)
[('john', 'A', 15), ('jane', 'B', 12), ('dave', 'B', 10)]
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #Ascending #discending
ADD COMMENT
Topic
Name
6+7 =