diff options
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="") |