O'Reilly logo
  • Chris Kang thinks this is interesting:

By contrast, byte strings use only \x hexadecimal escapes to embed the encoded form of text, not its decoded code point values


Cover of Learning Python, 5th Edition


When you use bytes (eg. b"\xA3"), the values is stored as literal byes. So when you print this stsring, you get exactly b"\xA3". You need to call .decode() to get the actual decoded character printed.