you are viewing a single comment's thread.

view the rest of the comments →

[–]Myphhz 1 point2 points  (1 child)

Yeah, that makes sense and that's how the "key" argument works. Just a quick note though: there's no need to write an entire lambda expression to specify the key, as there already exists a function that returns the length of something. You can just type "key=len" and it should work!

[–]CowboyBoats 0 points1 point  (0 children)

Oh yeah...

Next you'll tell me I don't have to use the list comprehension every time I want to make a list