Skip to content

Commit 72889a7

Browse files
committed
Add function that returns calculated sum after new rules
1 parent f3b8974 commit 72889a7

File tree

1 file changed

+3
-1
lines changed
  • puzzles/solutions/2023/d01

1 file changed

+3
-1
lines changed

puzzles/solutions/2023/d01/p2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ def _convert_digits_names_to_numbers(input_text: str) -> str:
2626

2727

2828
def get_answer(input_text: str):
29-
raise NotImplementedError
29+
"""Return the calibrations values sum where digits names are replaced with numbers."""
30+
input_text = _convert_digits_names_to_numbers(input_text)
31+
return p1.calculate_calibration_values_sum(input_text)
3032

3133

3234
if __name__ == "__main__":

0 commit comments

Comments
 (0)