|
@ -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, ''): |
|
|
... |
|
|
... |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|