mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
SF #990497: Fix a trivial typo in sorted() example.
(Submitted by Daniel Pezely)
This commit is contained in:
parent
872dc5c457
commit
2b05248e8b
1 changed files with 1 additions and 1 deletions
|
|
@ -540,7 +540,7 @@ expressions. The differences are:
|
|||
>>> L = [9,7,8,3,2,4,1,6,5]
|
||||
>>> [10+i for i in sorted(L)] # usable in a list comprehension
|
||||
[11, 12, 13, 14, 15, 16, 17, 18, 19]
|
||||
>>> L = [9,7,8,3,2,4,1,6,5] # original is left unchanged
|
||||
>>> L # original is left unchanged
|
||||
[9,7,8,3,2,4,1,6,5]
|
||||
|
||||
>>> sorted('Monte Python') # any iterable may be an input
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue