for i in range(1, 101): print(i, end='\t') if i % 10 == 0: print() # start a new line after every 10 numbers