title: Python - while all list elements result in true for .isalpha issue
body: <p>I have used the following code to return a list as soon as an <code>element.isalpha()</code> becomes <code>False</code>:</p>
  
  <pre><code>  for element in initialList:
      if element.isalpha() == True:
        newList.append(element)
    return newList
  </code></pre>
  
  <p><code>initialList</code> is a predefined list that contains random mixed letters/numbers for testing purposes, and of course <code>newList</code> is the return as soon as <code>element.isalpha()</code> becomes <code>False</code></p>
  
  <p>However, I have to use a <code>while</code> loop as well as a <code>break</code> statement to achieve this. How could I go by doing this?</p>