Функция Python Max с лямбдой
def winner():
w = max(players, key=lambda p: p.totalScore)
Arno Deceuninck
def winner():
w = max(players, key=lambda p: p.totalScore)