logical operators there are three logical operators supported by python these operators (andornotare to be written in lower case only the logical operator evaluates to either true or false based on the logical operands on either side every value is logically either true or false by defaultall values are true except nonefalse (zero)empty collections ""()[]{}and few other special values so if we say num num - then both num and num are logically true table logical operators in python operator operation description example (try in labtrue and true if both the operands are truethen condition true becomes true num num - bool(num and num true true and false false num bool(num and num false false and false false and logical and or logical or if any of the two operands are truethen condition becomes true not logical not used to reverse the logical num bool(num state of its operand true or true true true or false true bool(num or num true false or false false true not num bool(num false identity operators identity operators are used to determine whether the value of variable is of certain type or not identity operators can also be used to determine whether two -