From 95fc38ef1d661a5dd4aa775bee29b207d5df9916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 17 Feb 2019 20:15:09 +0100 Subject: [PATCH] Iterator --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index a018c0d..9b7d4ba 100644 --- a/README.md +++ b/README.md @@ -177,8 +177,7 @@ for line in iter(input, ''): #### Same, but prints a message every time: ```python from functools import partial -promted_in = partial(input, 'Please enter value: ') -for line in iter(promted_in, ''): +for line in iter(partial(input, 'Please enter value: '), ''): ... ```