I have a string called search containing multiple columns like this:

```
1     4     +/+
2     6     +/+
4     3     -/-
5     3     +/+

```

it is delimited by tabs. I want to sequentially go through row by row (I would assume using a for loop), search the row for if it contains "+/+" and if yes, add that value to a nested list containing the value from the second column. If there is no entry (for example 3 is not in the first row), then I want the paired value to be 0. So for the output of this specific case, it should be [[1, 4], [2, 6], [3, 0], [4, 0], [5, 3]].

So far I've tried 

```
for i = 5
    if search[3] == '+/+'
        basefile[i]=(i, search[5])
    else
        basefile[i]=(i, 0)

```

what steps am I leaving out? I am very new to python.