python new line in print statement code example Example: how to show output in a different line in python >>> print(f"Hello\nWorld!")