Browse Source

Iterator

pull/27/head
Jure Šorn 5 years ago
parent
commit
c1a285028c
1 changed files with 2 additions and 1 deletions
  1. 3
      README.md

3
README.md

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

Loading…
Cancel
Save