Last active
November 10, 2016 20:03
-
-
Save xmnlab/adf55820d1134e9a31121a88d05d2375 to your computer and use it in GitHub Desktop.
iinput
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def iinput(): | |
while True: | |
v = input('Name: ') | |
if not v: | |
break | |
yield v | |
[print(v) for v in iinput()] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment