Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit83c5cf0

Browse files
authored
Update README.md
updated the 'data' list to contain 1 at the end, because then the solution exemplifies the filterfalse() works by value based filtering, which is different to positional filtering in dropwhile()
1 parent9d666e8 commit83c5cf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2000,7 +2000,7 @@ itertools.filterfalse(predicate, iterable)
20002000
Example:
20012001

20022002
```python
2003-
>>> data= [1,2,3,4,5,6,7,8,9,10]
2003+
>>> data= [1,2,3,4,5,6,7,8,9,10,1]
20042004
>>> result= itertools.filterfalse(lambdax: x<5, data)
20052005
>>>for eachin result:
20062006
>>>print(each)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp