December 2018
— Altogether or separate?
It may sounds dumb of me to ask but,is there any supporting resources to python3 org docs too ?sometimes it's getting confusing for me to understand some of results there
— Anybody can send me telegram game
— Pairs = [(1, 'one'), (2, 'two'), (3, 'three'), (4, 'four')]pairs.sort(key=lambda pair: pair[1])I'm unable to figure out output of this
Message permanent page
— What is this
— It sorts your list by second elements
— Because of the “pair[1]”?
— Yep
— Https://stackoverflow.com/questions/29781862/how-does-this-example-of-a-lambda-function-work
— I love google and stack overflow
— You should
— Got it ,thanks BTW how could I get my script to print 'three' I.e Pair[1] of Pairs[2] ?