Welcome to the lesson on Escape Sequences
To insert characters that are illegal in a string, use an escape character.
An escape character is a backslash \ followed by the character you want to insert.
String Formatting
Some Examples: You will get an error if you use double quotes inside a string that is surrounded by double quotes:
To fix this problem, use the escape character \":
Some Examples: The escape character allows you to use double quotes when you normally would not be allowed:
End of Escape Sequences
You have learned Escape Sequences in simple terms. Let's proceed on to Quiz.