SyntaxFix
Write A Post
Hire A Developer
Questions
I know "for" is not what you want, but it's simple and clear:
for x in b: a.remove(x)
Or if members of b might not be in a then use:
b
a
for x in b: if x in a: a.remove(x)