Escape Sequence In Python For Space. “\t” allows inserting a space or tab between two words. In your case, \2 is treated as ascii character.
But if you want to escape a specific set of characters then use this lambda function: The sequence of characters after a backslash is known as an escape sequence.