What is difference between 'aa' and '\xaa'? What does the \x part mean? And which chapter of the Python documentation covers this topic?
What is difference between ‘aa’ and ‘\xaa’ ? What does the \x part mean?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The leading
\xescape sequence means the next two characters are interpreted as hex digits for the character code, so\xaaequalschr(0xaa), i.e.,chr(16 * 10 + 10)— a small raised lowercase'a'character.Escape sequences are documented in a short table here in the Python docs.