diff --git a/day-13/day-13.py b/day-13/day-13.py index 6fd0457..536b776 100644 --- a/day-13/day-13.py +++ b/day-13/day-13.py @@ -27,7 +27,7 @@ def part_1(input): dots.add((int(x), int(y))) elif 'fold along' in line: d, c = line.strip().split()[-1].split('=') - instructions.append([d, int(c)]) + instructions.append((d, int(c))) dots = fold(instructions.pop(0), dots) result = len(dots) print("Part 1 result:", result) @@ -43,7 +43,7 @@ def part_2(input): dots.add((int(x), int(y))) elif 'fold along' in line: d, c = line.strip().split()[-1].split('=') - instructions.append([d, int(c)]) + instructions.append((d, int(c))) while len(instructions): dots = fold(instructions.pop(0), dots)