Solution to problem 8 in Python

This commit is contained in:
David Doblas Jiménez 2022-04-03 20:59:16 +02:00
parent 23570a8cb2
commit 81c499830e

View File

@ -117,7 +117,7 @@ def part_1() -> None:
# After you swipe your card, what code is the screen trying to display? # After you swipe your card, what code is the screen trying to display?
def display(grid): def display(grid: npt.NDArray[int]) -> None:
print( print(
"\n".join("".join("X" if one else " " for one in row) for row in grid) "\n".join("".join("X" if one else " " for one in row) for row in grid)
) )