Skip to content

Commit 5aee116

Browse files
authored
Create Emoji_Convertor
1 parent f3dabfe commit 5aee116

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Emoji_Convertor

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
message = input("> ")
2+
words = message.split()
3+
emojis = {
4+
":)" :"😄",
5+
":(" :"😔",
6+
":D" :"😁"
7+
8+
}
9+
output = " "
10+
for word in words:
11+
output+=emojis.get( word,word) + " "
12+
print(output)

0 commit comments

Comments
 (0)