how to print one line in python code example Example 1: python print in one line print(item, end=" ") Example 2: how to print a line in python print("Hellow world!")