Can please help to look at where did i go wrong here. scratching my balding head with this little problem
hits 2 errors when i try debugging
Oops, try again. Did you create a function called censor? Your code threw a "global name 'censor' is not defined" error.
File "python", line 7
return " ".join(i)
SyntaxError: invalid syntax
def censor(text,zap): text = str(raw_input("What's your word?")) text = text.split() for i in text: if i == zap: i.replace("*" * len(zap) return " ".join(i)