Browse Source

Iterator

pull/9/head
Jure Šorn 5 years ago
parent
commit
02a09d4a8a
1 changed files with 1 additions and 1 deletions
  1. 2
      README.md

2
README.md

@ -167,7 +167,7 @@ for line in iter(input, ''):
#### Same, but prints a message every time:
```python
from functools import partial
for line in iter(partial(input, 'Please enter value'), ''):
for line in iter(partial(input, 'Please enter value: '), ''):
...
```

Loading…
Cancel
Save