python newline character

print("foo\nbar")
"""
foo
bar
"""

Here is what the above code is Doing:
1. It’s creating a string variable called ‘foo’ and assigning it the value ‘bar’.
2. It’s printing the value of ‘foo’ to the console.
3. It’s creating a new line in the console.
4. It’s printing the value of ‘bar’ to the console.