added ws202425 courses
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# TODO
|
||||
print("Height: ")
|
||||
while True:
|
||||
try:
|
||||
size = int(input())
|
||||
if 1 <= size <= 8:
|
||||
break
|
||||
else:
|
||||
print("Height between 1 and 8: ")
|
||||
except ValueError:
|
||||
print("Height with numeric value: ")
|
||||
|
||||
for i in range(1, size+1):
|
||||
print(((size - i) * ' ') + (i * '#'))
|
||||
Reference in New Issue
Block a user