Kaomoji

Kaomoji was all about replacing. The whole point is that the Japanese normally write their emoticons horizontally  rather than vertically. The code is what is meant to replace the vertical with the horizontal. In this simply used a variable for the input question and then replaced each emoticon to kaomoji in a new line of code.
-
msg = msg.replace ( ":)", "( ^_^)")
msg = msg.replace ( ":D", "( ^ o ^)")
msg = msg.replace ( ":O", "( O_O)!")
print(msg)

No comments:

Post a Comment