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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️