DEV Community

Maria Boldyreva
Maria Boldyreva

Posted on

14 3

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more