Skip to content

Instantly share code, notes, and snippets.

@SANTOSHSHARMA11
Created December 14, 2019 13:17
Show Gist options
  • Save SANTOSHSHARMA11/3b3a2b9d8ed21a1d7ba07e9f8789a1ec to your computer and use it in GitHub Desktop.
Save SANTOSHSHARMA11/3b3a2b9d8ed21a1d7ba07e9f8789a1ec to your computer and use it in GitHub Desktop.
IT will convert emoticon to emoji
def emotes():
p = input(">")
q = p.split(" ")
a = {"(:": " ☺ ", ":)": " 😞 ", "~": " 😡 "}# here emoji and emoticon can be added according to user
out = ""
for ch in q:
out += a.get(ch, ch) + " "
print(out)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment