I need help, maybe I got the fundamentals wrong.
"Write a function called censor that takes two strings, text and word, as input. It should return the text with the word you chose replaced with asterisks."
"Oops, try again. Your function fails on censor("hey hey hey","hey"). It returns "None" when it should return "*** *** ***".
this is my code def censor(text,word): change="" change="*"*len(word) g=text.split() for words in text: if word==words: g[words]=change return text