#! /usr/bin/env python3 # Michael Chang # 2/6/2026 # emoji module overview # CPSC 2000, Professor Slade # pip install emoji # https://pypi.org/project/emoji/ # https://www.webfx.com/tools/emoji-cheat-sheet/ import emoji # emoji.emojize() - turns text into emojis print(emoji.emojize(":thinking_face:")) print(emoji.emojize(":zany_face:")) print(emoji.emojize(":zipper-mouth_face:")) # emoji.LANGUAGES - lists all languages supported by the module print(emoji.LANGUAGES) # emoji.is_emoji() - determines whether the whole function argument is an emoji print(emoji.is_emoji("smile")) print(emoji.is_emoji(emoji.emojize("😇"))) print(emoji.is_emoji(emoji.emojize(":melting_face:"))) print(emoji.is_emoji(emoji.emojize(":melting_face: hello"))) # emoji.distinct_emoji_list() - returns a list of all emojis in a string print(emoji.distinct_emoji_list(emoji.emojize(":basketball: is a really nice sport. Another nice sport is :soccer_ball:"))) # emoji.EMOJI_DATA - returns a dictionary of all emoji names and icons print(list(emoji.EMOJI_DATA)[:20])