diff --git a/day01/part2.py b/day01/part2.py index e920056..1cc188b 100644 --- a/day01/part2.py +++ b/day01/part2.py @@ -7,8 +7,8 @@ COUNT = 3 for vals in combinations(items, 3): if sum(vals) == 2020: - print("Found {} and {} and {}: Sum={} Product={}".format( - *vals, + print("Found [{}]: Sum={}, Product={}".format( + ", ".join(map(str, vals)), sum(vals), math.prod(vals) ))