can anyone plese explain how to work with
def censor(text , word ) : n = len(word) a = '*' * n for word in censor: text.split(word) return text + a return censor
Oops, try again. Does your censor function take exactly two arguments, a text string and a word to replace with asterisks? Your code threw a "'function' object is not iterable" error.
I can't get my code to work