I've tried a lot of things and still can't make this work. The console says I can't assingn to function call. What does that mean? How can I make it work?
Here's the lesson:
Here's what the console says:
File "python", line 10
SyntaxError: can't assign to function call
Here's my code
text = raw_input("Input the sentence: ") word = raw_input("Input the word you would like to censor: ") censored = "" def censor(text, word): text_splited = text.split(" ") censor = ["*" * len(word)] print text for words in range(len(text_splited)): if text_splited(words) == word: text_splited(words) = censor else: continue censor(text, word)