Skip to content

Instantly share code, notes, and snippets.

@gardenmwm
Created January 4, 2013 21:44
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 gardenmwm/4457150 to your computer and use it in GitHub Desktop.
Save gardenmwm/4457150 to your computer and use it in GitHub Desktop.
import sys
record=[]
for line in sys.stdin:
if len(record) < 2 and line != '\n':
record.append(line.strip())
elif len(record) == 2:
print record
record=[]
sys.stdout.flush()
else:
print "Not yet",
print record
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment