Advertisement
GreatRaymondo

emojis

Aug 16th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. message = input(">")
  2. words = message.split(' ')
  3. emojis = {
  4. ":)": "😊",
  5. ":(": "😢"
  6. }
  7. output = ""
  8. for word in words:
  9. output += emojis.get(word, word) + " "
  10. print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement