loops and lists and the condition in python codethese are written as = ! > note the double == is an assignmentnotice the use of the double =when checking for equality as we mentioned in the single equality sign has different meaning in python (and many other programming languagesthan we are used to from mathematicssince it is used to assign value to variable checking two variables for equality is different operationand to distinguish it from assignmentwe use =we can output the value of boolean expressions with statements such as print( < or in an interactive python shellas followsc ! true false = true most of the boolean expressions we will use in this course are of the simple kind aboveconsisting of single comparison that should be familiar from mathematics howeverwe can combine multiple conditions using and/or to construct while loops such as thesewhile condition and condition while condition or condition the rules for evaluating such compound expressions are as expectedc and is true if both and are truewhile or is true if at least one of the two conditions and is true one can also negate boolean expression using the term notwhich simply yields that not is true if is falseand vice versa to gain feel for compound boolean expressionsyou can go through the following examples by hand and predict the outcomeand then try to run the code to obtain the resultx print( > and print( > or print( or print( or not print(- < same as - and < print(not ( or )