TDT4109/Exercise 4 - Inspera/19.py

4 lines
100 B
Python
Raw Normal View History

2020-10-01 12:05:45 +02:00
def isosceles_triangle(h):
for i in range(1, h+1):
spaces = h-i
print(spaces*' ' + i*'* ')