Earlier quoted context omitted.
I too am a big fan of having my computer hallucinate incorrect information.
>> print(“Hello, world!”.ai_reverse()) world, Hello!
Used to be easy, when it was ASCII.
Reverse the bytes of utf-8 and it won't always be valid uft-8.
Reverse the code-points, and the Canadian flag gets replaced with the Ascension Island flag.