The other day I came across a question on Twitter that asked for an example of a string that couldn't be reversed.
I had an inkling that something like an emoji would probably work.
For example, here's what happens when you try to reverse the string "🇺🇸" in Python:
>>> flag = "🇺🇸" >>> reversed_flag = flag[::-1] >>> print(reversed_flag) 🇸🇺
Seems kind of weird, right?
Find out what's going on in my latest blog post:
https://davidamos.dev/why-cant-you-reverse-a-flag-emoji.
Find out what's going on in my latest blog post:
https://davidamos.dev/why-cant-you-reverse-a-flag-emoji.