From a1a60d921c9ab0b62161a9efa3ec1e4238cb4c9c Mon Sep 17 00:00:00 2001
From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com>
Date: Sat, 4 May 2024 07:30:21 +0000
Subject: Sat, May 4, 2024, 12:30 AM -07:00

---
 wk6/pset/sentimental-mario-more/mario.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'wk6/pset/sentimental-mario-more')

diff --git a/wk6/pset/sentimental-mario-more/mario.py b/wk6/pset/sentimental-mario-more/mario.py
index 07fb1c5..dfec5e0 100644
--- a/wk6/pset/sentimental-mario-more/mario.py
+++ b/wk6/pset/sentimental-mario-more/mario.py
@@ -7,11 +7,12 @@
 
 from cs50 import get_int
 
-size = 16
 
-while (size < 1) and (size > 8):
+while True:
     size = get_int("Height: ")
+    if size > 0 and size < 9:
+        break
 
-for i in range(size - 1):
+for i in range(size):
     print(" " * (size - i - 1), "#" * (i + 1), "", "#" * (i + 1), " " * (size - i - 1))
 
-- 
cgit v1.2.3