Run
for x in range(5): for y in range(6): print(x, end=' ') print()
Output