Comments.

This commit is contained in:
Mikael CAPELLE
2022-12-02 09:21:38 +01:00
parent 60e68ed31c
commit f4ef0a2666
2 changed files with 12 additions and 1 deletions

View File

@@ -5,6 +5,8 @@ from pathlib import Path
with open(Path(__file__).parent.joinpath("inputs", "day1.txt")) as fp:
lines = fp.readlines()
# we store the list of calories for each elf in values, and we use the last element
# of values to accumulate
values: list[int] = [0]
for line in lines:
if not line.strip():