diff --git a/day1/common.py b/day1/common.py index ef1615e..17a39cb 100644 --- a/day1/common.py +++ b/day1/common.py @@ -1,7 +1,7 @@ def parse(filename: str) -> list: with open(filename, 'r') as f: - return [l[:-1] for l in f.readlines()] + return [line[:-1] for line in f.readlines()] def split(parsed: list[str]) -> tuple[list[int], list[int]]: l1 = [] diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..2fe15c1 --- /dev/null +++ b/readme.md @@ -0,0 +1,2 @@ +# Advent Of Code 2024 +Mes solutions, en python, pour l'advent of code 2024: [https://adventofcode.com/2024](https://adventofcode.com/2024) \ No newline at end of file