I have a list in python 2.7 and I want to remove any items from it that exist in another list. The loop seems to stop short and I am not sure why it only deletes b and not b and c from lt_sub?
bad = ['b','c']
lt = ['a','b','c']
lt_sub = lt
for l in lt:
if l in bad:
lt_sub.remove(l)
print lt_sub