Python Morsels: Newlines and escape sequences in Python
Python allows us to represent newlines in strings using the \n "escape sequence" and Python uses line ending normalization when reading and writing with files.
Read the full article: https://www.pythonmorsels.com/newlines-and-escape-sequences/
https://www.pythonmorsels.com/newlines-and-escape-sequences/