phrase = "なまむぎなまごめなまたまご" print(phrase) secret = input("隠すフレーズ?") hidden = phrase.replace(secret, "×") print(hidden) print(f"元の言葉は「{phrase}」でした") # プログラム8-22(伏せ字化)