From c472b1be1a2042ecffabc7cb90f4f908f08256b2 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 8 Dec 2021 15:05:58 +0100 Subject: Use the .total() method --- 2021/06/puzzles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '2021') diff --git a/2021/06/puzzles.py b/2021/06/puzzles.py index 9d3f2d4..c842e55 100644 --- a/2021/06/puzzles.py +++ b/2021/06/puzzles.py @@ -20,7 +20,7 @@ def main() -> None: acc[6] += n acc[8] = n - print(sum(acc.values())) + print(acc.total()) if __name__ == "__main__": -- cgit v1.2.3