I have an excerpt of code:
while True:
if a == float(b[0]):
y = b[1]
x.append(y)
else:
a = a + 1
Where b is a list two columns wide. The problem is that the if statement does not iterate across all of the elements, and therefore the else statement is never reached. I was wondering how I could fix this?