List operation in python

Hey guys… Been working on my python skills so please pardon the newbie question.

Why doesn’t the code iterate over all the “lst” in “con”? It works on only list with index 96 BUT index 72 also has a true boolean. Please what am i doing wrong? Thanks.

You need another list to contain your outs. Right now it’s resetting OUT for every successful iteration, so only the last output is shown.

1 Like

Thanks alot.