Introduction
In this modern era, people express their feelings via emojis. Emojis have become a part of our daily life communication. On social media responses, we create emojis every day, several times a day. This blog explains how to create emojis in Python and print them on screen.
What is an emoji?
Emoji are ideograms and smileys used in electronic messages and web pages. Emojis exist in various genres, including facial expressions, common objects, places and types of weather, and animals. They are much like emoticons, but emoji are actual pictures instead of typography.
Let's start.
Open your Visual Studio Code editor and create a Python file.
$ Touch Emoji.py
Open this file in VS Code.
$ code Emoji.py
Go to
Emoji and choose emoji which you want to print. Copy and paste the code. Suppose you have copied a smiley face code, i.e., U+1F600
In the code, replace + with 000 and use backslash before the starting of the code, as shown ahead - \U0001F600
-
- facesmiling='\U0001F600'
- print(facesmiling)
Output
Example
Output
Example
Output