Cleanup
This commit is contained in:
parent
960980862d
commit
2adc9853d5
|
@ -3,11 +3,6 @@ from string import ascii_letters
|
||||||
with open("day3\input.txt") as f:
|
with open("day3\input.txt") as f:
|
||||||
data = f.readlines()
|
data = f.readlines()
|
||||||
|
|
||||||
def findCommon(leftside:str,rightside:str):
|
|
||||||
for char in leftside:
|
|
||||||
if char in rightside:
|
|
||||||
return ord(char)
|
|
||||||
|
|
||||||
prio_sum = 0
|
prio_sum = 0
|
||||||
while data:
|
while data:
|
||||||
test_strings = [data.pop(0) for idx in range(3)]
|
test_strings = [data.pop(0) for idx in range(3)]
|
||||||
|
|
Loading…
Reference in New Issue