Yak Shaving just me

21May/091

I love Python

Compare two lists?

list(set(b).difference(set(a)))

done

Tagged as: Leave a comment
Comments (1) Trackbacks (0)
  1. I quite like this:

    [i for i in a if i not in b]

    It brings me happy happy joy joy.


Leave a comment


No trackbacks yet.