Run
breakFlag = False for i in range(10): for j in range(i): for k in range(j): if i == 4 and j == 2 and k == 2: breakFlag = True break print('*', end='') if breakFlag: break print(' ', end='') if breakFlag: break print()
Output