The Python Oracle

python max function using 'key' and lambda expression

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Meditation

--

Chapters
00:00 Question
01:09 Accepted answer (Score 384)
04:25 Answer 2 (Score 23)
04:51 Answer 3 (Score 12)
06:15 Answer 4 (Score 11)
07:58 Thank you

--

Full question
https://stackoverflow.com/questions/1829...

Accepted answer links:
[set of rules]: http://docs.python.org/2/reference/expre...
[In Python 2 it is possible to compare items of two different types]: http://docs.python.org/2/reference/expre...
[But in Python 3 you can't do that any more]: http://docs.python.org/3.0/whatsnew/3.0....

Answer 4 links:
[here]: https://en.wikipedia.org/wiki/Lambda_Cal...
[here]: https://www.utdallas.edu/~gupta/courses/...
[here]: https://stackoverflow.com/questions/1650...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #function #lambda

#avk47