class Filter:
    def __init__(self, word="바보"):
        self.word = word

    def check(self, sentence):
        if self.word in sentence:
            print("순화된 언어를 사용하세요")
        else:
            print("정상 입력")

words = Filter()
words.check("나는 바보입니다")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: