411 REFERENCE · Wikibooks
An Introduction to Python For Undergraduate Engineers/Boolean Logic
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
You can use simple Boolean expressions in logical statements such as those that we used in the while loop. The available expressions are:
Expression Example Description of exampleandwhile done==False and x<10:keep looping whilst both done equals false and x is less than 10orif count==10 or value==5:do something if variable count=10 or the variable value=5notwhile not done:keep looping while the done variable is not 'True'