An emoji is a pictogram, logogram, ideogram, or smiley embedded in the text and used in electronic messages and web pages. They can represent emotion, weather conditions, hand gestures, people, animals, objects, etc. They replace the conventional typographical style.
In python, emojis can be printed using their respective Unicodes. For example, the grinning face with big eyes emoji has a Unicode of U+1F603. When using such a Unicode in our code, we replace the “+” with “000” so that U+1F603 becomes U0001F603.
Now, we will print different emojis using their corresponding Unicodes.
# for the grinning face with big eyes
print ('\U0001F603')
# for the winking face
print('\U0001F609')
# for the kissing face
print('\U0001F617')
😃
😉
😗
Every emoji has a corresponding Unicode.
RELATED TAGS
CONTRIBUTOR
View all Courses