Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- message = input(">")
- words = message.split(' ')
- emojis = {
- ":)": "😊",
- ":(": "😢"
- }
- output = ""
- for word in words:
- output += emojis.get(word, word) + " "
- print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement