title: Regarding python loops
body: <p>I have an excerpt of code:</p>
  
  <pre><code>      while True:
  
             if a == float(b[0]):
                 y = b[1]
                 x.append(y)
  
             else: 
                 a = a + 1
  </code></pre>
  
  <p>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? </p>