From 824f4eff67d45d903931e8704d9d1639626a44c9 Mon Sep 17 00:00:00 2001 From: Pascal Lais Date: Mon, 13 Dec 2021 12:11:54 +0100 Subject: [PATCH] Update day 13 solution --- day-13/day-13.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)