title: Python while loop (coding exercise, three variables)
body: <p>As I'm a total programming newbie, I need your advice concerning the coding exercise which I need to fulfil for the online course. </p>
  
  <p>Here is the instruction: </p>
  
  <p><code>mystery_int_1 = 3</code></p>
  
  <p><code>mystery_int_2 = 4</code></p>
  
  <p><code>mystery_int_3 = 5</code><br>
   (these will be changed after I submit the code, so it's just an example)</p>
  
  <p>Above are three values. Run a while loop until all three values are less than or equal to 0. Every time you change the value of the three variables, print out their new values all on the same line, separated by single spaces. For example, if their values were 3, 4, and 5 respectively, your code would print:</p>
  
  <p>2 3 4</p>
  
  <p>1 2 3</p>
  
  <p>0 1 2</p>
  
  <p>-1 0 1</p>
  
  <p>-2 -1 0</p>
  
  <p>I tried writing it this way:</p>
  
  <pre><code>while not mystery_int_1 &lt;= 0 and not mystery_int_2 &lt;= 0 and not mystery_int_3 &lt;= 0: 
      mystery_int_1 -= 1
      mystery_int_2 -= 1
      mystery_int_3 -= 1
      print(mystery_int_1, mystery_int_2, mystery_int_3) 
  </code></pre>
  
  <p>After running the code I realized that there is something wrong with it, but I cannot figure out how to modify it. Tried many options, and neither of them worked as it was supposed to... </p>
  
  <p>Thank you all in advance! </p>