diff --git a/day1/day1.py b/day1/day1.py index b065267..39f4131 100644 --- a/day1/day1.py +++ b/day1/day1.py @@ -13,3 +13,11 @@ if __name__ == "__main__": largest = max(elves, key=elves.get) print(f'Index: {largest}\nValue: {elves[largest]}') + + top3 = 0 + for i in range(3): + largest = max(elves, key=elves.get) + top3 += elves[largest] + elves[largest] = 0 + + print(f'Top 3: {top3}')