title: Assistance with while loops
body: <p>In the below code I would like the counter to remain on 0 rather than go into negative figures when one of the stock hits 0 which continuing to count the other items down.</p>
  <pre><code>cheese = 1
  sausage = 3
  tomato = 3
  
  while cheese &gt; 0 or sausage &gt; 0 or tomato &gt; 0:
    print(&quot;Cheese stock:&quot;)
    print(cheese)
    print(&quot;Sausage stock:&quot;)
    print(sausage)
    print(&quot;Tomato stock:&quot;)
    print(tomato)
    cheese -=1
    sausage -=1
    tomato -=1
  </code></pre>
  <p>I totally understand why this runs to negative numbers - the &quot;or&quot; operator means that it will do so however if I use the &quot;and&quot; operator it will only run once, understandably so.</p>