compound boolean expressions to be eligible to graduate from loyola university chicagoyou must have credits and gpa of at least this translates directly into python as compound conditioncredits > and gpa >= this is true if both credits > is true and gpa > is true short example program using this would becredits float(input('how many units of credit do you have')gpa float(input('what is your gpa')if credits > and gpa >= print('you are eligible to graduate!'elseprint('you are not eligible to graduate 'the new python syntax is for the operator andcondition and condition the compound condition is true if both of the component conditions are true it is false if at least one of the conditions is false see congress exercise (page in the last example in the previous sectionthere was an if-elif statement where both tests had the same block to be done if the condition was trueif xlowdx -dx elif xhighdx -dx there is simpler way to state this in sentenceif xhighswitch the sign of dx that translates directly into pythonif xhighdx -dx the word or makes another compound conditioncondition or condition is true if at least one of the conditions is true it is false if both conditions are false this corresponds to one way the word "oris used in english other times in english "oris used to mean exactly one alternative is true warningwhen translating problem stated in english using "or"be careful to determine whether the meaning matches python' or it is often convenient to encapsulate complicated tests inside function think how to complete the function startingdef isinside(rectpoint)'''return true if the point is inside the rectangle rect ''pt rect getp (pt rect getp (recall that rectangle is specified in its constructor by two diagonally oppose points this example gives the first use in the tutorials of the rectangle methods that recover those two corner pointsgetp and getp the if statements