From cabbb8cfb77c39f60918fc0472d9f209c35ff2b8 Mon Sep 17 00:00:00 2001 From: chahmad89 <125163220+chahmad89@users.noreply.github.com> Date: Sat, 11 Feb 2023 23:50:15 +0000 Subject: [PATCH] Update grid.py --- code/grid.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/code/grid.py b/code/grid.py index d716575..9f71d03 100644 --- a/code/grid.py +++ b/code/grid.py @@ -113,3 +113,25 @@ def print_grid(): """ print(comment) + +#In my viw there is a much simpler way of doing it as: +def floor(): + print('+ - - - - + - - - - +') + +def beam(): + print('| | |') + +def do_four(b): + b() + b() + b() + b() + +def print_grid(): + floor() + do_four(beam) + floor() + do_four(beam) + floor() + +print_grid()