►
Run
i = 1 while i < 6 : j = 1 while j < 8 : print(i, end=" ") if j == 3 : break j += 1 print() i += 1
Output