mirror of
https://github.com/Crocmagnon/advent-of-code.git
synced 2024-11-22 06:28:11 +01:00
Fix pre-commit
This commit is contained in:
parent
aab661dd1d
commit
ffdc98b7b9
3 changed files with 4 additions and 4 deletions
|
@ -24,9 +24,9 @@ def parse_data(data: list[str]) -> DataType:
|
||||||
for line in data:
|
for line in data:
|
||||||
first, second = line.split(",")
|
first, second = line.split(",")
|
||||||
first_1, first_2 = first.split("-")
|
first_1, first_2 = first.split("-")
|
||||||
first = set(range(int(first_1), int(first_2)+1))
|
first = set(range(int(first_1), int(first_2) + 1))
|
||||||
second_1, second_2 = second.split("-")
|
second_1, second_2 = second.split("-")
|
||||||
second = set(range(int(second_1), int(second_2)+1))
|
second = set(range(int(second_1), int(second_2) + 1))
|
||||||
lines.append((first, second))
|
lines.append((first, second))
|
||||||
return lines
|
return lines
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue