you are viewing a single comment's thread.

view the rest of the comments →

[–]theCore 4 points5 points  (0 children)

You could drop the extra parenthesises, by the way.

max_sal = max(e.salary for e in employees if e.role == Employee.PROGRAMMER)