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