From e122bb62a0ce9512b803d313bb58e0c2050d5405 Mon Sep 17 00:00:00 2001 From: Sebastian Seedorf Date: Tue, 1 Dec 2020 22:33:48 +0100 Subject: [PATCH] Day 1 (fixed part 2 #2) --- day01/part2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day01/part2.py b/day01/part2.py index 1cc188b..8f2c0b9 100644 --- a/day01/part2.py +++ b/day01/part2.py @@ -5,7 +5,7 @@ items = [int(x.strip()) for x in open("input.txt")] COUNT = 3 -for vals in combinations(items, 3): +for vals in combinations(items, COUNT): if sum(vals) == 2020: print("Found [{}]: Sum={}, Product={}".format( ", ".join(map(str, vals)),