compare 2 lists py code example
Example 1: compare lists element wise python
[ x&y for (x,y) in zip(list_a, list_b)]
Example 2: diff 2 lists python
def get_diff(a: list,b: list) -> list:
return list(set(a) ^ set(b))
[ x&y for (x,y) in zip(list_a, list_b)]
def get_diff(a: list,b: list) -> list:
return list(set(a) ^ set(b))