print emojis using python

In this article we shall how to print emojis to the console. It would be cool to see emojis in our console right. Let us get started with the installation of a python package called “emoji“.

Installation

This package can be easily installed using pip. Just type the following command in your terminal and you are good to go.

pip install emoji

Example

This is how we can print an emoji to our console. The emojize method from the emoji class takes a CLDR short name of the emoji and prints the emoji in our console.

This will print something like this in our console.

Yay it worked 👍

Let us see some more examples.

These lines will print respectively,

We can also use the demojize function to find the unicode from the emoji.

This will give us the following output.

:man:

Let me list some of the examples from the emoji cheat sheet.

emoji cheat sheet

If you want more examples take a look at this website.

Hope this article was helpful and fun.

Happy coding!

4 thoughts on “print emojis using python

  1. whoah this blog is great i like reading your articles. Stay up
    the good work! Yoou recognize, lots of people are searching around for this
    info, you could help them greatly.

  2. I savour, lead to I discovered eexactly what I was taking a lok for.
    You have ended my four day lengthy hunt! God Bless you man. Have a nice day.
    Bye

  3. Thank y᧐u for sһaring your thoughts. I truly appreciate your efforts and I will be waіting for your further write ups thanks once again.

Leave a Reply

Your email address will not be published. Required fields are marked *