fork download
  1. i= set([5,3,1]) # <-- 'Master' Set
  2. z= [set([5,0,4]), set([2,9,8])]
  3. newlist = [x for x in z if x.intersection(i)]
  4. print newlist
  5.  
  6. # your code goes here
Success #stdin #stdout 0.02s 9016KB
stdin
Standard input is empty
stdout
[set([0, 4, 5])]