You can achive this through using join(), split() + list of censors words. You code like be
userText = input("Enter some Text to be Censored: ")
# Initialization of censors words list and replaced by
censors_words = ['dang', 'darn', 'freak']
repl_word = '****'
result = ' '.join([repl_word if idx in censors_words else idx for idx in userText.split()])
print("Result : " + str(result))
Entered TextL Hello dang for darn and freak
Result : Hello **** for **** and ****