I have created a list full of "coordinates" in Python: L1 = [(1,2), (5,6), (-1,-2), (1,-2), etc..].
If I wanted to remove all items in the list which contained negative numbers, how would I do this?
I've tried:
for (a,b) in L1:
if a < 0 or b < 0:
L1.remove(a,b)
But it isn't working. Would very much appreciate any help.
Jack