human
I am working on the file "Python_2_3.ipynb".
The first task is:
Exkurs: Sortieren für Objekte
Can you write Python code for it?

=====
Can you provide a the Python code you requested?
assistant
#Here is the Python code you requested.

class student:
    def __init__(self, name, note):
        self.name = name
        self.note = note

studenten = [student("Cordula",2), student("Vicky", 3), student("Michael", 1)]
[print(stud.name + "\t" + str(stud.note)) for stud in studenten]

from operator import attrgetter
[print(stud.name + "\t" + str(stud.note)) for stud in sorted(studenten, key=attrgetter("note"))]