fork download
  1. points = [[ 10. , 10. ],
  2. [ 11. , 10. ],
  3. [ 10.5 , 9.1339746],
  4. [ 10.5 , 10. ],
  5. [ 10.75 , 9.5669873],
  6. [ 10.25 , 9.5669873],
  7. [ 2. , 2. ],
  8. [ 3. , 2. ],
  9. [ 2.5 , 1.1339746],
  10. [ 2.5 , 2. ],
  11. [ 2.75 , 1.5669873],
  12. [ 2.25 , 1.5669873]]
  13. exclude = [[2., 2.], [3., 2.], [2.5, 2.]]
  14.  
  15. print [p for p in points if p not in exclude]
Success #stdin #stdout 0.08s 8832KB
stdin
Standard input is empty
stdout
[[10.0, 10.0], [11.0, 10.0], [10.5, 9.1339746], [10.5, 10.0], [10.75, 9.5669873], [10.25, 9.5669873], [2.5, 1.1339746], [2.75, 1.5669873], [2.25, 1.5669873]]