Escape sequences – special characters

An escape sequence is a combination of characters in technical informatics that does not represent text, but is intercepted by the device and performs a special function.

CharacterMeaning
\Backslash and newline ignored
\nLinefeed
\fFormfeed
\tHorizontal Tab
\vVertical Tab
\rCarriage Return
\bBackspace
\\Backslash
\’Single Quote
\”Double Quote

Example

print("first \t \
line \nsecond \t line \n\"Lorem Ipsum\"")
Output
first    line 
second   line 
"Lorem Ipsum"