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