We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 26ab1d8 + 092eaf6 commit 0371388Copy full SHA for 0371388
source/c04/p08_skip_first_part_of_iterable.rst
@@ -41,7 +41,7 @@
41
42
>>> from itertools import dropwhile
43
>>> with open('/etc/passwd') as f:
44
- ... for line in dropwhile(lambda line: not line.startswith('#'), f):
+ ... for line in dropwhile(lambda line: line.startswith('#'), f):
45
... print(line, end='')
46
...
47
nobody:*:-2:-2:Unprivileged User:/var/empty:/usr/bin/false
0 commit comments