TDT4109/Exercise 4 - Inspera/18.py

3 lines
75 B
Python
Raw Permalink Normal View History

2020-10-01 12:05:45 +02:00
def triangle(h):
for n in reversed(range(1,h+1)):
print('* '*n)