18 lines
379 B
Python
18 lines
379 B
Python
if __name__ == "__main__":
|
|
grid = []
|
|
|
|
grid.append("DOG....")
|
|
grid.append("---....")
|
|
grid.append("----...")
|
|
grid.append("-------")
|
|
grid.append("...----")
|
|
grid.append("....---")
|
|
grid.append("....CAT")
|
|
|
|
rows = len(grid)
|
|
cols = len(grid[0])
|
|
for s in grid:
|
|
assert(len(s) == cols)
|
|
|
|
print(f"rows={rows}")
|
|
print(f"cols={cols}") |