0

Hi, I have data like these:

```
data_past = [[62.0, 144.0, 3, 0]] where data_past=[[red_circle_x , red_circle_y , id_of_rectangle , status]]
data_current = [[60, 148, 0], [148, 127, 0]] where data_current=[[red_circle_x , red_circle_y , status]]
```

And I want to compare each row of data_current to all data_past to get minimum distance, while status of data_past and data_current is 0, if 1 pass it

What should I put for it works so the program just calculate the distance when status

```
data_past and data_current is 0
for j in range(0,len(data_curr)):
for k in range(0,len(data_past)):
```

*Edited
by ShilohAmi*