Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sort key python

>>> class Student:
...     def __init__(self, name, grade, age):
...         self.name = name
...         self.grade = grade
...         self.age = age
...     def __repr__(self):
...         return repr((self.name, self.grade, self.age))
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #sort #key #python
ADD COMMENT
Topic
Name
7+9 =