Downward Half Pyramid

Print downward Half-Pyramid Pattern with Star (asterisk)

list(range(6,0,-1))
[6, 5, 4, 3, 2, 1]
def half_pyramid(rows):

    for i in range(rows, 0, -1):
        for _ in range(0, i):
            print('*', end=' ')
        print('')
half_pyramid(6)
* * * * * * 
* * * * * 
* * * * 
* * * 
* * 
*