1 """ Count the dots on slightly folded transparent paper """
4 with open("13_input.txt") as f:
9 dots.add(tuple(int(a) for a in line.split(",")))
12 direction, fold_line = fold.strip().split(" ")[2].split("=")
13 fold_line = int(fold_line)
17 if direction == "x" and x > fold_line:
20 elif direction == "y" and y > fold_line:
24 folded_dots.add((x, y))
27 # break # First part just wants the number of dots after first fold.
31 xs, ys = list(zip(*dots))
35 for j in range(max_y + 1):
37 for i in range(max_x + 1):