how to print out a string on two different lines python code example Example: how to show output in a different line in python >>> print(f"Hello\nWorld!")