Skip to content

Commit

Permalink
Merge pull request #23 from nikobockerman:improvements
Browse files Browse the repository at this point in the history
Improvements
  • Loading branch information
nikobockerman authored Aug 22, 2024
2 parents c851a08 + 6a11a39 commit 852c069
Show file tree
Hide file tree
Showing 32 changed files with 687 additions and 584 deletions.
6 changes: 3 additions & 3 deletions adventofcode/d1.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from typing import Iterable
from collections.abc import Iterable

_STR_DIGITS = ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]

Expand Down Expand Up @@ -35,9 +35,9 @@ def _int_chars_to_int(s1: str, s2: str) -> int:

def _p1_ints(lines: Iterable[str], use_texts: bool) -> Iterable[int]:
for line in lines:
logging.debug(f"{line=}")
logging.debug("line=%s", line)
value = _int_chars_to_int(*_find_first_and_last_int(line, use_texts))
logging.debug(f"{value=}")
logging.debug("value=%s", value)
yield value


Expand Down
Loading

0 comments on commit 852c069

Please sign in to comment.