Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Closed
Description
Documentation
A example oflambda expressions introduceslist.sort()
, but there aren't details oflist.sort()
before.
>>>pairs= [(1,'one'), (2,'two'), (3,'three'), (4,'four')]>>>pairs.sort(key=lambdapair:pair[1])>>>pairs[(4,'four'), (1,'one'), (3,'three'), (2,'two')]
We shoud linkmore on lists after this example or intutorial 3.1.3 lists.
Linked PRs
- gh-133881: detailed the docs for an example with a lambda expression using list.sort() #133910
- [3.14] gh-133881: add forward reference to
list.sort()
in lambda expression tutorial (GH-133910) #134126 - [3.13] gh-133881: add forward reference to
list.sort()
in lambda expression tutorial (GH-133910) #134127
Metadata
Metadata
Assignees
Projects
Status
Todo