fork download
  1. def EmojiCode(TextWrittenInMorseCode):
  2. message = ''
  3. for character in TextWrittenInMorseCode:
  4. if character == '*' or character == '.':
  5. message=message+':) '
  6. if character == '-':
  7. message=message+';) '
  8. if character == ' ':
  9. message=message+'\n'
  10. return message
  11.  
  12. SomeTextEnteredByUser= input("GIVE ME THAT MESSAGE: ")
  13. print("HERE IS YOUR MESSAGE MOTHERFUCKER:\n"+EmojiCode(SomeTextEnteredByUser))
Success #stdin #stdout 0s 5284KB
stdin
......
stdout