c = [item for item in a if item["item_id"] not in b]
Will be better to make "b" as a set in case of a large amount of items.
2.1m questions
2.1m answers
60 comments
56.9k users