<div dir="ltr"><div><div><div><div>I think the lambda keyword is difficult to understand for many people. It would be more pythonic to use an empty def call instead. <br><br></div>For instance this:<br><br></div> words.sort(key = lambda x: x[2])<br>
<br></div>could look like this:<br> <br> words.sort(key = def (x): x[2])<br><br></div>It's obvious and explicit that we're creating an unnamed, anonymous function this way. <br></div>