Skip to content

Instantly share code, notes, and snippets.

@jojonki
Created April 4, 2018 13:32
Show Gist options
  • Select an option

  • Save jojonki/b73bbadfed902e87e7ed01857a69b22a to your computer and use it in GitHub Desktop.

Select an option

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