TDT4109/Exercise 4 - Inspera/19.py

4 lines
100 B
Python

def isosceles_triangle(h):
for i in range(1, h+1):
spaces = h-i
print(spaces*' ' + i*'* ')