「censor」をPythonで実装したい、という意味でしょうか?よくある課題の「文章中の特定の単語を伏せ字にする関数」なら、例えばこんな感じです: ```python def censor(text, word): return text.replace(word, "*" * len(word)) print(censor("this hack is wack hack", "ha