This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def mood_converter(message): | |
word = message.split(' ') | |
my_mood_tuple = {'happy': ':)', 'sad': ':('} | |
output = '' | |
for message in word: | |
output += my_mood_tuple.get(message, message) + ' ' | |
return output | |
message = input('>') |