Emoji conversion

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:

Emoji conversion

Happy Coding :)