mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Doc fix. Mathematically correct sentence.
This commit is contained in:
parent
fe15003680
commit
169fa9345d
1 changed files with 2 additions and 2 deletions
|
|
@ -170,8 +170,8 @@ There are three built-in functions that are very useful when used with lists:
|
|||
``filter(function, sequence)`` returns a sequence consisting of those items from
|
||||
the sequence for which ``function(item)`` is true. If *sequence* is a
|
||||
:class:`string` or :class:`tuple`, the result will be of the same type;
|
||||
otherwise, it is always a :class:`list`. For example, to compute primes up
|
||||
to 25::
|
||||
otherwise, it is always a :class:`list`. For example, to compute a sequence of
|
||||
numbers not divisible by 2 and 3::
|
||||
|
||||
>>> def f(x): return x % 2 != 0 and x % 3 != 0
|
||||
...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue