middle (lower upper)/ before if middle** lower middle else if block upper middle print(lowerupperafter let' return to our square root example here we have the creation of mid-point -value followed by an if-test on itmiddle (lower+upper)/ if middle** this switches between two single-line code blocks if the test evaluates to true then the then-block is runlower middle and if it evaluates to false then the else-block is runelseupper middle after one or other is run the print statement is always runprint(lowerupperall we have to do now is to fit it inside our while loop