python escape characters in string code example
Example 1: python tab character
Escape Sequence Meaning
\t Tab
\\ Inserts a back slash (\)
\' Inserts a single quote (')
\" Inserts a double quote (")
\n Inserts a ASCII Linefeed (a new line)
Example 2: python escape characters
\' Single Quote
\\ Backslash
newline = '\n'
Example 3: python carriage return
## In Python, you can put a carriage return into a string using '\r'.
## This is basically just a newline, and usually you would just use
## '\n'.