From f05d35537b96c9f0595caa7ef09bc8802bacfc43 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 15 Dec 2021 22:24:05 +0100 Subject: I like nested functions --- 2021/15/puzzles.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '2021') diff --git a/2021/15/puzzles.py b/2021/15/puzzles.py index dd19eef..8cdd19c 100644 --- a/2021/15/puzzles.py +++ b/2021/15/puzzles.py @@ -36,11 +36,11 @@ def elongate(grid: matrix[int]) -> matrix[int]: def main() -> None: with open("input", "r", encoding="utf-8") as f: + # START PART 1 data = read_int_matrix(f) - - # START PART 2 - data = elongate(data) - # END PART 2 + # END PART 1 START PART 2 + data = elongate(read_int_matrix(f)) + # END PART 2 X_UPPER = len(data) Y_UPPER = len(data[0]) -- cgit v1.2.3