From 81c499830e7348edc5a5a035a1b57d3537bf2123 Mon Sep 17 00:00:00 2001 From: daviddoji Date: Sun, 3 Apr 2022 20:59:16 +0200 Subject: [PATCH] Solution to problem 8 in Python --- src/Year_2016/P8.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Year_2016/P8.py b/src/Year_2016/P8.py index 879ad19..c47b794 100644 --- a/src/Year_2016/P8.py +++ b/src/Year_2016/P8.py @@ -117,7 +117,7 @@ def part_1() -> None: # After you swipe your card, what code is the screen trying to display? -def display(grid): +def display(grid: npt.NDArray[int]) -> None: print( "\n".join("".join("X" if one else " " for one in row) for row in grid) )