# Program to remove emoticons. string_with_emoticons = "Oh, hai! Can I haz cheezeberger? :D :D" emoticons = (":D", ":)", ":/", ":p", ";)") for emoticon in emoticons: string_with_emoticons = string_with_emoticons.replace(emoticon, "") print(string_with_emoticons)