DEV Community

Maria Boldyreva
Maria Boldyreva

Posted on

Python: unicode characters by name

Hey all 🤘!
Did you know you can display unicode characters in python by their name? Like this:

>>> '\N{SIGN OF THE HORNS}'
'🤘'
>>> '\N{KANGXI RADICAL HAND}'
'⼿'
>>> '\N{VICTORY HAND}'
'✌'
Enter fullscreen mode Exit fullscreen mode

I didn't.
Docs

Top comments (0)