# Author: Scott Wehrwein
# Date: 2/22/23
# L15 Problem 1 - censor function

def censor(text, words):
    """ Return a copy of text (a string) with all instances
    of each string in words (a list of strings) removed. """
    
    for word in words:
        # remove all instances of word from text
        text = text.replace(word, "")
    
    return text