What is escape character in Python?

What is escape character in Python?
Answer
In Python strings, the backslash “” is a special character, also called the “escape” character. It is used in representing certain whitespace characters: “t” is a tab, “n” is a newline, and “r” is a carriage return. … Finally, “” can be used to escape itself: “\” is the literal backslash character.
 

Tìm kiếm

Back
Top