Solution to problem 8 in Python
This commit is contained in:
parent
23570a8cb2
commit
81c499830e
@ -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)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user