#using "orlogical operator print("the use of or operator returns:", > or > #using "notlogical operator print("the use of not operator returns:"not >zin [ ]runfilethe use of and operator returnsfalse the use of or operator returnstrue the use of not operator returnstrue explanationin the first examplex> does not holds good and > holds correct since all the conditions are not holding correct for "andoperatorhence result is "falsein the second example result is "true"sinceone condition is holding correct in the last example > is "false"but when "notoperator is usedwe get the result as "trueboolean operators boolean operators are applicable only on boolean values and they provide boolean output there are three boolean operators"and""orand "notthe boolean operator always returns boolean value as shown in the following program#program to show the use of boolean operators xtrue yfalse #use of "andboolean operator print("the use of and operator returns" and yprint("the use of and operator on only returns" and xprint("the use of and operator on only returns" and #use of "orboolean operator print("the use of or operator returns" or yprint("the use of or operator returns" or #use of "notboolean operator print("the use of not operator on returns"not xprint("the use of not operator on returns"not yin [ ]runfilethe use of and operator returnsfalse the use of and operator on only returnstrue the use of and operator on only returnsfalse