Answer:
Check the explanation
Step-by-step explanation:
print("************************************************************")
sentence = input("Enter a sentence : ").split()
replace_words = input("\\Enter the words that should be replaced : ").split()
special = input("\\Enter the replacing special Character : ")
result = []
for word in sentence:
if word not in replace_words:
result.append(word)
else:
result.append(special * len(word))
result = ' '.join(result)
print("\\The Sentence with words censored is : " + result)
print("************************************************************")