Question: 
Write a function to remove words from a given list of strings containing a character or string.


Model's Code:
def remove_words(strings, to_remove):
    return [word.translate(str.maketrans('', '', ''.join(to_remove))) for word in strings]



Sample Correct Code:
def remove_words(list1, charlist):
    new_list = []
    for line in list1:
        new_words = ' '.join([word for word in line.split() if not any([phrase in word for phrase in charlist])])
        new_list.append(new_words)
    return new_list


Asserts:
assert remove_words(['Red color', 'Orange#', 'Green', 'Orange @', "White"],['#', 'color', '@'])==['Red', '', 'Green', 'Orange', 'White']
assert remove_words(['Red &', 'Orange+', 'Green', 'Orange @', 'White'],['&', '+', '@'])==['Red', '', 'Green', 'Orange', 'White']
assert remove_words(['Red &', 'Orange+', 'Green', 'Orange @', 'White'],['@'])==['Red &', 'Orange+', 'Green', 'Orange', 'White']


Tests:
Test 1 of 3: FAIL: AssertionError()

Test 570 of 974: 423/570 (74.21052631578947%): failed