I\'m trying to write a piece of code that can automatically factor an expression. For example, if I have two lists [1,2,3,4] and [2,3,5], the code should be able to find th
You can use symmetric_difference command
x = {1,2,3} y = {2,3,4}
z = set.difference(x,y)
Output will be : z = {1,4}