Run
n = 6 for x in range(n): for y in range(x+1): print('* ', end=' ') print()
Output