Given the cut = [0,9,8,2] and mom = [[0,8,1], [0, 6, 2, 7], [0, 11, 12, 3, 9], [0, 5 , 4, 10]]
Assuming item 0 is removed from the clipped list
open = [9,8,2]
result = [] for e in mom: result.append (list (set (e) -set (cut)))
o / r Result
[[0, 1], [0, 6, 7], [0, 11, 3, 12], [0, 10, 4, 5]]
Manjunath
source share