how to print in one line in python in for loop code example Example: python print in one line print(item, end=" ")