Python While Loop with Multiple Conditions not Exiting : <p>I have a code in which exits only when anyone of the 3 variables cross 7</p>

<pre><code>while(a!=7 or b!=7 or c!=7):

   #My algorithm to increase values based on input
#end of while
</code></pre>

<p>My code never exits the while loop when anyone of of the variables cross 7.
However when I change the code to</p>

<pre><code>while(a!-7):

    #Algorithm
#End of while
</code></pre>

<p>and on providing inputs to increase a to 7, the loop exits.</p>

<p>Is there some mistake in my syntax for while loop with multiple condition or is it something else?</p>

<p><strong>The algorithm that I have written in works perfectly, only the while loop cannot exit on reaching the condition for anyone of the variable</strong></p>
