Emoji conversion in Python Aug 12, 2022 About emoji Unicode please read here Emoji Unicode def emoji_converter(message): words = message.split(" ") emojis = { ":)": "\U0001F600", ":(": "\U0001F606", ":>": "\U0001F61C", ":<": "\U0001F917" } output = "" for word in words: output += emojis.get(word, word) + " " print(output) message = input("> ") emoji_converter(message) Output: Happy Coding :)