I have two python lists:
a = [(\'when\', 3), (\'why\', 4), (\'throw\', 9), (\'send\', 15), (\'you\', 1)] b = [\'the\', \'when\', \'send\', \'we\', \'us\'] <
A list comprehension should work:
c = [item for item in a if item[0] not in b]
Or with a dictionary comprehension:
d = dict(a) c = {key: value for key in d.iteritems() if key not in b}