with the string in memorythey are used only to describe special character values to be stored in the string for coding such special characterspython recognizes full set of escape code sequenceslisted in table - table - string backslash characters escape meaning \newline ignored (continuation line\backslash (stores one \\single quote (stores '\double quote (stores "\ bell \ backspace \ formfeed \ newline (linefeed\ carriage return \ horizontal tab \ vertical tab \xhh character with hex value hh (exactly digits\ooo character with octal value ooo (up to digits\ nullbinary character (doesn' end string\nid unicode database id \uhhhh unicode character with -bit hex value \uhhhhhhhh unicode character with -bit hex valuea \other not an escape (keeps both and othera the \uhhhh escape sequence takes exactly eight hexadecimal digits ( )both \ and \ are recognized only in unicode string literals in xbut can be used in normal strings (which are unicodein in bytes literalhexadecimal and octal escapes denote the byte with the given valuein string literalthese escapes denote unicode character with the given code-point value there is more on unicode escapes in some escape sequences allow you to embed absolute binary values into the characters of string for instancehere' five-character string that embeds two characters with binary zero values (coded as octal escapes of one digit) ' \ \ cs ' \ \ clen( in pythona zero (nullcharacter like this does not terminate string the way "null bytetypically does in insteadpython keeps both the string' length and text in memory in factno character terminates string in python here' string that is all string literals