Show Emoji in Python code

emoji

Tons of web site and applications allow the use of Emoji. There is even an Emoji cheat sheet to show the available Emojis. Wikipedia explains that some of the Emoji were standardized as Unicode characters.

There is a Python module, surprisingly called emoji that allows us to include Emoji in Python based applications. A simple example would look like this:

examples/python/show_emoji.py

import emoji

print(emoji.emojize('Python is :thumbs_up_sign:'))
print(emoji.emojize('Python is :cookie:'))


And the output looks like this:

Python is 👍
Python is 🍪

Related Pages

Python

Author

Gabor Szabo (szabgab)

Gabor Szabo, the author of the Python Maven web site.

Gabor Szabo