Share on social networks!

Emojis with Python

Surely you use emojis very often in your daily life, whether on social networks or in WhatsApp conversations or other chat or messaging apps. And they have become a whole way of communicating, to show our mood or make us laugh.

As programmers that we are, today we are going to learn to write code that will output those emojis. If you want to learn to program in this versatile and well-known language in the world of programming, the Master in Advanced Programming in Python for Hacking, Machine Learning and BigData, will give you the necessary skills.

Ways to make emojis with Python

In Python we can use several ways to output emojis.

  1. Unicode.
  2. CLDR names.
  3. emoji module.

We leave you an example of the list of emojis but you can see it in full here

emojis with python


To use Unicodes, we need to replace “+” with “000” from the Unicodes list.

For example “U + 1F600” would be “U0001F600” and the Unicode prefix with “\” will print it.

python emoticons
output python

CLDR names

The emojis have short CLDR names that can also be used.

print emoji python

emoji module

We can also implement emojis using the emoji module in Python. To install it we just have to run it in the terminal pip install emoji

emoji module with python

Subscribe to our newsletter to stay up to date with all the news

EIP International Business School informs you that the data in this form will be processed by Mainjobs Internacional Educativa y Tecnológica, SA as the person responsible for this website. The purpose of collecting and processing personal data is to respond to the query made as well as to send information about the services of the data controller. Legitimation is the consent of the interested party.
You can exercise your rights of access, rectification, limitation and deletion of data in compliance@grupomainjobs.com as well as the right to file a claim with the supervisory authority. You can consult additional and detailed information on Data Protection in the Privacy Policy that you will find in our Web page

Leave a comment