stars = int(input("enter a number: ")) for number in range( 1, stars + 1 ) : print( number * "* ") stars = stars - 1 while stars != 0 : print( stars * "* " ) stars = stars - 1