title: Python - while loop three conditions
body: <p>I'm trying to make a while loop with multiple conditions:</p>
  
  <pre><code>condition = -1
  condition1 = 3
  x = 2
  condition2 = 5
  y = 4
  while not condition == 1 and not condition1 &gt; x and not condition2 &gt; y:
           print "hey"
  
  condition = 1
  condition1 = 3
  x = 2
  while not condition == 1 and not condition1 &gt; x:
           print "hey"
  </code></pre>
  
  <p>If I put only two conditions, the code prints "hey" but if I put three conditions (that is verified, because i print the condition before to test if it's true), not prints. </p>
  
  <p>I search other questions on the stackoverflow but nothing solves my problem.</p>
  
  <p>Any idea? Please. </p>