Created
November 3, 2016 06:17
-
-
Save ejmg/36c6c6a83fc8ee88456c5baf817d482e to your computer and use it in GitHub Desktop.
get an unknown number of lines of input
This file contains hidden or 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
try: | |
while True: | |
inp = input() | |
if inp != "": | |
# code | |
else: | |
break | |
except EOFError: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment