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)

We want your help! Become a Tag Moderator.
Check out this survey and help us moderate our community by becoming a tag moderator here at DEV.