Escape Character
say it: “es-KAYP KAIR-ik-ter” /ɪˈskeɪp ˈkɛrɪktər/
A backslash that gives the next character a special meaning, like \n for a new line.
What is an escape character?
An escape character is a backslash \ that gives the next character a special meaning, like \n for a new line or \" for a quote inside a string.
print("Line one\nLine two")
print("She said \"hi\"") # She said "hi"
Level: Novice · More Python terms at this level
Updated