All Courses

Print Emoji's using Python.

Shashank Shanu

2 years ago

Print Emojis Using Python
Table of Content
  • How To Print Emojis In Python
  • Using emoji module
  • Example
Today we try to see how we can print different emoji in python. 
Python provides emoji function which can create some fun in our coding language.
Let's begin
 Python Tips For Beginners | How To Print Emojis In Python? | LIVE DEMO

Using emoji module:

      To install it run the following in the terminal. In the python module emoji is used to implement Emoji characters. To install this module need following command :
pip install emoji
insert it into command prompt or terminal
For example:
Example 1:
The CLDR (Common Locale Data Repository) Project short name passed to emojize() method as a parameter. It will return corresponding emoji. In CLDR short name space is not allowed so we can use "_"  underscore for this.
# import emoji module  

import emoji 
code gives as the result | insideaiml
Check this cheat sheet for an entire list of the emoji module names.
An alternative of the above two methods is using the emoji modules in order to print emojis. This requires the installation of emoji pip package:
Example 2:
print(“\U0001F603”);    #grinning face with big eyes
print(“\U0001F600”);    #grinning face
print("\U0001F916");    #robot
output: The code will give the below results
code will give the below results | insideaiml
I hope you enjoyed reading this article and finally, you came to know about Print Emoji's using python.
To know more about python programming language follow the insideaiml youtube channel.  
For more such blogs/courses on data science, machine learning, artificial intelligence and emerging new technologies do visit us at InsideAIML.
Thanks for reading…
Happy Learning…
Recommended Course for you
Recommended blog for you  

Submit Review