how to make a for loop print on one line python code example Example: python print for loop one line for i in range(1,11): print(i , end=" ")