Created
December 14, 2019 13:17
-
-
Save SANTOSHSHARMA11/3b3a2b9d8ed21a1d7ba07e9f8789a1ec to your computer and use it in GitHub Desktop.
IT will convert emoticon to emoji
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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