TDT4109/Exercise 4 - Inspera/17.py

3 lines
65 B
Python

def triangle(h):
for n in range(1,h+1):
print('* '*n)