From 75a42ec54dbf721caa659ddf02c1f46fc2cb4bef Mon Sep 17 00:00:00 2001 From: mlot Date: Fri, 6 Jun 2025 13:40:57 -0400 Subject: initial commit for archiving --- Chap4PracGrid.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Chap4PracGrid.py (limited to 'Chap4PracGrid.py') 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="") -- cgit