Skip to content

Instantly share code, notes, and snippets.

@ebuckley
Created August 16, 2013 22:39
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 ebuckley/6254097 to your computer and use it in GitHub Desktop.
Save ebuckley/6254097 to your computer and use it in GitHub Desktop.
Template for nz programming competition
# template for starting a programming contest question
# shortcuts
import pprint
printer = pprint.PrettyPrinter(indent=4)
pp = printer.pprint
def do_work(data):
""" after reading a file data is passed into this function"""
pass
if __name__ == '__main__':
data = []
try:
while True:
line = input()
data.append(line)
except (KeyboardInterrupt, EOFError):
pass
do_work(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment