python code to print in new line 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!")