Escape Characters
Escape Characters
Escape Characters are very important in python. It allows us to insert illegal characters into a string like a back slash, new line or a tab.
Single/Double Quote: used to insert single/double quotes in the string.
Example:
Output:
New Line: inserts a new line wherever specified.
Example:
Output:
Tab: inserts a tab wherever specified.
Example:
Output:
Backspace: erases the character before it wherever it is specified.
Example:
Output:
Backslash: used to insert a backslash into a string.
Example:
Output: