title: Python how to mutate a variable in a method call
body: <p>Is it possible to modify variables in if statements, loops, and function calls in Python like you can in C and Java? </p>
  
  <p>Ex:</p>
  
  <pre><code>i=0
  while((i+=1)&lt;10): #invalid syntax
      print(i) 
  </code></pre>
  
  <p>If not why is that?</p>