0
3 ответов
+ 4
employee is a class. employee.name refers to a class variable "name" that doesn't exist. With self.name within __init__, you define instance variables. They can be used for sorting just as your code does (lambda x: x.name)
0
Please help me to fix above code
0
Anna thanks a lot confusion cleared