Queer European MD passionate about IT

faces.py 335 B

123456789
  1. def replace_emoticons_with_emojis():
  2. input_string = input("Say something quickly and I will repeat it slowly!\t\t")
  3. for emoticon, emoji in {':)': '🙂', ':(': '🙁'}.items():
  4. input_string = input_string.replace(emoticon, emoji)
  5. print(input_string)
  6. if __name__ == "__main__":
  7. replace_emoticons_with_emojis()