Coding_for_Crosswords_in_Py.../a.py
2021-07-13 17:27:14 +02:00

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}")