Censor,whats wrong here



def censor(word,text):
    for word in text:
    return text

Replace this line with your code.


replace() just does all the work for you, you don't learn to build your own function, are you sure you want this?

i find it confusing, word contains the sentence and text contains the word you want to censor. maybe swap your function parameters

you do a replace action, but you don't store the result of this replace anywhere


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