Removing the common elements between two lists
use sets :
res = list(set(a)^set(b))
You can use sets learn more from here
print(set(a).difference(b))
use sets :
res = list(set(a)^set(b))
You can use sets learn more from here
print(set(a).difference(b))