u saw nothing
parent
041fbb83be
commit
5cd8ecb9ee
1
day_3.py
1
day_3.py
|
@ -25,7 +25,6 @@ for r, rucksack in enumerate(rucksacks):
|
||||||
rucksack_1prev = set(rucksacks[r-1])
|
rucksack_1prev = set(rucksacks[r-1])
|
||||||
rucksack_2prev = set(rucksacks[r-2])
|
rucksack_2prev = set(rucksacks[r-2])
|
||||||
(in_badge,) = rucksack_0prev & rucksack_1prev & rucksack_2prev
|
(in_badge,) = rucksack_0prev & rucksack_1prev & rucksack_2prev
|
||||||
print(in_badge)
|
|
||||||
if in_badge.islower():
|
if in_badge.islower():
|
||||||
badges_priority = badges_priority + ord(in_badge) - 96
|
badges_priority = badges_priority + ord(in_badge) - 96
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue