def star(count): return ['*' * i for i in range(1, count)] for star in star(9): print(star)