13th Feb 2019, 6:24 AM
Susanta Paul
Susanta Paul - avatar
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)
13th Feb 2019, 6:41 AM
Anna
Anna - avatar
0
Please help me to fix above code
13th Feb 2019, 6:25 AM
Susanta Paul
Susanta Paul - avatar
0
Anna thanks a lot confusion cleared
13th Feb 2019, 7:27 AM
Susanta Paul
Susanta Paul - avatar
Актуальное сегодня
.
1 Votes
What?
0 Votes
HTML
0 Votes
Web
0 Votes
Quiz duel
0 Votes
FRC Coding?
1 Votes
AI
2 Votes
help
0 Votes
APIs
1 Votes