DEV Community

Discussion on: AoC Day 1: Chronal Calibration

Collapse
 
aspittel profile image
Ali Spittel

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'))))