re: AoC Day 1: Chronal Calibration VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Ah! So good. The clean-ness of Python never stops making me happy! Using a set was a good idea. I didn't think of that, but it would be a lot f...
 

Awesome! Yes, thank you! Found out about itertools.cycle this morning -- feels super niche but still really cool.

Part one could also be a one-liner!

print(sum(int(line for line in open('input.txt', 'r'))))
code of conduct - report abuse