title: Multiple statements in list compherensions in Python?
body: <p>Is it possible to have something like:</p>
  
  <pre><code>list1 = ...
  
  currentValue = 0
  list2 = [currentValue += i, i for i in list1]
  </code></pre>
  
  <p>I tried that but didn't work? What's the proper syntax to write those?</p>
  
  <p>EDIT: the print statement was an example. Actually I am incrementing a value outside the loop.</p>