def star(count_of_star, count_of_tree): return ['*' * i for i in range(1, count_of_star+1)] * count_of_tree for star in star(4, 9): print(star)