Skip to content

introduce list.sort() but no details before #133881

Description

@Yzi-Li

Documentation

A example of lambda expressions introduces list.sort(), but there aren't details of list.sort() before.

>>> pairs = [(1, 'one'), (2, 'two'), (3, 'three'), (4, 'four')]
>>> pairs.sort(key=lambda pair: pair[1])
>>> pairs
[(4, 'four'), (1, 'one'), (3, 'three'), (2, 'two')]

We shoud link more on lists after this example or in tutorial 3.1.3 lists.

Linked PRs

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc direasy

Fields

No fields configured for issues without a type.

Projects

Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions