Created
August 16, 2013 22:39
-
-
Save ebuckley/6254097 to your computer and use it in GitHub Desktop.
Template for nz programming competition
This file contains 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
# 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