From dd53bb6cdedd3170b6aea09ed5b739273e5eef82 Mon Sep 17 00:00:00 2001 From: Logan G Date: Fri, 2 Dec 2022 23:05:27 -0700 Subject: [PATCH] Slightly fixed Day 1 --- day1/day1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day1/day1.py b/day1/day1.py index 39f4131..4d36409 100644 --- a/day1/day1.py +++ b/day1/day1.py @@ -18,6 +18,6 @@ if __name__ == "__main__": for i in range(3): largest = max(elves, key=elves.get) top3 += elves[largest] - elves[largest] = 0 + del elves[largest] print(f'Top 3: {top3}')