bot50 2024-03-22 08:16:37 +00:00
commit a9d2df81b1
1 changed files with 14 additions and 0 deletions

14
mario.py Normal file
View File

@ -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