Skip to content

Instantly share code, notes, and snippets.

@jojonki
Created April 4, 2018 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jojonki/b73bbadfed902e87e7ed01857a69b22a to your computer and use it in GitHub Desktop.
Save jojonki/b73bbadfed902e87e7ed01857a69b22a to your computer and use it in GitHub Desktop.
Read lines until the EOF in Python
refs = []
while True:
try:
ref = input()
refs.append(ref)
except EOFError:
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment