I have two list a and b I have to get result of two list one with elements which are in both and one in which elements of b which aren't present in a.I have to write the code in python.output and should look like this.
a = ['product','shampoo','vivel','spark']
b = ['random','product','shampoo','nothing']
c = ['product','shampoo']
d = ['random','nothing']
I need an efficient one as I have to do this some process many times Thank you, please let me know if there is any unclarity.