sep and newline in python print code example Example 1: print new line python print("\n") Example 2: how to show output in a different line in python >>> print(f"Hello\nWorld!")