loading...

Python: unicode characters by name

mxl profile image Maria Boldyreva ・1 min read

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}'
'✌'

I didn't.
Docs

Discussion

markdown guide