commit 8cfd43fd4a71d3dc675603e542c29cbba12e59a6 Author: kukemuna Date: Fri Mar 22 10:16:32 2024 +0200 automated commit by check50 [check50=True] diff --git a/mario.py b/mario.py new file mode 100644 index 0000000..8647260 --- /dev/null +++ b/mario.py @@ -0,0 +1,14 @@ +while True: + try: + height = int(input("Height: ")) + if height in range(1, 9): + break + except: + ValueError + +space = height - 1 + +for r in range(height): + print(" " * space + "#" * (height - space) + " " + "#" * (height - space), end="") + print() + space -= 1