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