The document explains various escape sequences in Python, including newline, tab, backslash, single and double quotes, carriage return, backspace, form feed, alert, vertical tab, and null character. Each escape sequence is illustrated with examples showing their output. Additionally, it mentions the raw string prefix which treats backslashes as literal characters.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
5 views
Escape_Sequences_Python
The document explains various escape sequences in Python, including newline, tab, backslash, single and double quotes, carriage return, backspace, form feed, alert, vertical tab, and null character. Each escape sequence is illustrated with examples showing their output. Additionally, it mentions the raw string prefix which treats backslashes as literal characters.