diff options
author | mlot <petri-rush-curvy@duck.com> | 2025-06-06 13:40:57 -0400 |
---|---|---|
committer | mlot <petri-rush-curvy@duck.com> | 2025-06-06 13:40:57 -0400 |
commit | 75a42ec54dbf721caa659ddf02c1f46fc2cb4bef (patch) | |
tree | 84be794a2481e356a7784557a6f9fb6fbf29cfdd /Chap4PracGrid.py |
Diffstat (limited to 'Chap4PracGrid.py')
-rw-r--r-- | Chap4PracGrid.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Chap4PracGrid.py b/Chap4PracGrid.py new file mode 100644 index 0000000..d000303 --- /dev/null +++ b/Chap4PracGrid.py @@ -0,0 +1,18 @@ +# !Python + +# Chapter 4 practice projects + +grid = [['.','.','.','.','.','.'], + ['.','0','0','.','.','.'], + ['0','0','0','0','.','.'], + ['0','0','0','0','0','.'], + ['.','0','0','0','0','0'], + ['0','0','0','0','0','.'], + ['0','0','0','0','.','.'], + ['.','0','0','.','.','.'], + ['.','.','.','.','.','.']] + +for x in range(len(grid[0])): + print() + for y in range(len(grid)): + print(grid[y][x], end="") |