# Use the replace function to find and replace the word with
# same number of asterisks as the length of the word.
return sent.replace(word, "*" * len(word))
sent = "Go feed all the ducks in the lake"
censored_sent = replaceWithAsterisk(sent, "ducks")
print(censored_sent)
If the answers is incorrect or not given, you can answer the above question in the comment box. If the answers is incorrect or not given, you can answer the above question in the comment box.