Escape sequence in python
Sequence of character after backslash ‘\’ are called escape sequence character.
Escape sequence character comprises of more than on character but represent one character when used within the string.
Some of the commonly used escape sequence characters are :-
‘\\’ | Backslash character |
‘\” | single quote character |
‘\n’ | Newline character |
‘\t’ | Tab character |
Example :-
Output :-
These are the most commonly used escape sequence characters. I hope you understand this tutorial. If you have query or suggestion please do a comment.
Thank You.
Comments
Post a Comment