From 31ad298e22511542848d6007a46b23389cf90cb7 Mon Sep 17 00:00:00 2001 From: Pascal Lais Date: Mon, 6 Dec 2021 07:32:21 +0100 Subject: [PATCH] Update day 6 solution --- day-06/day-06.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/day-06/day-06.py b/day-06/day-06.py index cbd01b1..343afa7 100644 --- a/day-06/day-06.py +++ b/day-06/day-06.py @@ -9,7 +9,7 @@ def part_1(input): tmp = count[0] count = [count[i+1] for i in range(8)] count[6] += tmp - count[8] = tmp + count.append(tmp) result = sum(count) print("Part 1 result:", result) @@ -21,7 +21,7 @@ def part_2(input): tmp = count[0] count = [count[i+1] for i in range(8)] count[6] += tmp - count[8] = tmp + count.append(tmp) result = sum(count) print("Part 2 result:", result)