Censor


#1



Censor


for some reason my code doesn't seem to be iterating all the way through the text input

Your function fails on censor("hey hey hey","hey"). It returns "*" when it should return "*** *** ***".


def censor(text, word):
    boom=""
    for char in word:
        boom+="*"
        return boom
    if word in text:
        text.replace(word,boom)
    return text


#2

nevermind, I'm an idiot.


#3