Your code looks a bit off--it threw a "invalid syntax (python, line 6)" error. Check the Hint if you need help!

def censor(text, word):
    splited=text.split(' ')
    for i in splited:
        if i==word:
    return text


look at your parentheses on the line above the error message line


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.