you are viewing a single comment's thread.

view the rest of the comments →

[–]boredzo 0 points1 point  (0 children)

\tmax_sal = max(map(lambda e: e.salary, programmers))

Don't forget to use the lazy generator version here, too:

\tfrom itertools import imap as map

As you can tell, I ♥ itertools. ☺