![]() So escape sequences are formed using two things: the first is a backslash (\\), and the second is the set of one or more characters following that backslash (\\). ![]() A sequence is just a set of two or more characters and an escape where the sequence begins with a backslash (\\) and other characters in the set follow that backslash.Īn escape sequence is a sequence of characters that, when used inside a character or string, does not represent itself but is converted into another character or series of characters. So here comes the role of escape sequences.įirstly, understand sequences. Suppose you have the string containing a double backslash (\\\\), and you want to print the string with a double backslash, but it is impossible to print it directly. Unlike Standard C, all unrecognized escape sequences are left in the string unchanged, i.e., the backslash is left in the string. Introduction to Escape Sequence in Python
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |