title: Call function in loop line and store return value to variable to then be used in the loop?
body: <p>I want to do something like the following:</p>
  
  <pre><code>while myFunc() as myVar:
      print myVar
  </code></pre>
  
  <p>Basically, just call a function in the loop line that will return a value and continue the loop depending on that value, but I would also like to be able to use that value within the loop and I would rather not have to call the function a 2nd time.</p>
  
  <p>What I would like to avoid:</p>
  
  <pre><code>while myFunc():
      myVar = myFunc()
      print myVar
  </code></pre>