retyped day2, completed days 3 and 4, modified template

This commit is contained in:
2024-12-01 16:19:37 +01:00
parent 42bab0cb9e
commit 9e21d8d9c8
12 changed files with 134 additions and 26 deletions

View File

@@ -1,6 +1,3 @@
from typing import Any
def parse(filename: str) -> Any | None:
def parse(filename: str) -> list[tuple[str, str]]:
with open(filename) as f:
return [tuple(a[:-1].split()) for a in f.readlines()]