List operation in python

python

#1

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.


#2

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.


#3

Thanks alot.