title: Python while loop not working with two conditions
body: <p>Im trying to make a while loop that stops when two variables are equal to 0, but when one of them reaches 0 the loop ends, and I have no clue why. This is what I have...</p>
  <pre class="lang-py prettyprint-override"><code>  movement=3
    attacks=1
    while (attacks != 0) and (movement != 0):
      do = input('what to do?')
      if do == 'move':
        movement -=1
      if do =='attack':
        attacks -=1
  </code></pre>
  <p>I could be missing something obvious, but any help is appreciated</p>