bot50 2024-03-22 07:59:11 +00:00
commit 3a7d7e51a4
1 changed files with 15 additions and 0 deletions

15
mario.py Normal file
View File

@ -0,0 +1,15 @@
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, end="")
print("#" * (height - space), end="")
print()
space -= 1