Solution :
The String literals can be enclosed within either the single quotes (i.e. '...') or the double quotes (i.e. "..."). They can also be enclosed in the matching groups of either three single or double quotes (these are usually referred to as triple-quoted strings).
The backslash character (i.e. \) can be used to escape the characters which otherwise will have a special meaning, such as the newline, backslash itself, or the quote character. String literals may be optionally prefixed with a letter either r or R. Such strings are called as raw strings and used in different rules for the backslash escape sequences.
In the triple-quoted strings, unescaped newlines and quotes both are allowed , except that the three unescaped quotes in the row terminate the string.
Unless an r or R prefix is present, the escape sequences in strings are interpreted according to rules similar to be used by Standard C.