r = range(10) for x in r: print(x, end=' ') print() for x in r: print(x, end=' ')