Browse Source

Day 3

master
Noëlle 1 year ago
parent
commit
6c60725fe3
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      day3-2.py

+ 1
- 1
day3-2.py View File

@@ -26,7 +26,7 @@ def main():
first, second, third = [set(elf) for elf in group]
debug(first, second, third)
debug(first & second & third)
common_item = list(first.intersection(second, third))[0]
common_item = list(first & second & third)[0]
values.append(ascii_letters.index(common_item)+1)
print(sum(values))

Loading…
Cancel
Save