What is the purpose of is, not and in operators?

Operators are referred to as special functions that take one or more values(operands) and produce a corresponding result.

  • is: returns the true value when both the operands are true (Example: “x” is ‘x’)
  • not: returns the inverse of the boolean value based upon the operands (example:”1” returns “0” and vice-versa.
  • In: helps to check if the element is present in a given Sequence or not.