Day 1 complete

This commit is contained in:
Logan G 2022-12-02 15:16:20 -07:00
parent 9ff8028933
commit 1081dde9f3
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -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}')