1 """Advent day 1, challenge 2
3 Count the number of times the input number
4 is higher than the previous one, but do a 3 day sliding window
9 with open("1_1_input.txt") as f:
10 depths = [int(line) for line in f.readlines()]
12 sliding_sums = [sum(depths[i:i+3]) for i in range(len(depths) - 2)]
16 for depth in sliding_sums:
17 if (prev_depth is not None
18 and depth > prev_depth):