Account
Categories

Relational Operators


Definition:

Relational operators work on two values or operands.

They compare the values of operands and return the result as True or False.

They are mainly used in conditional statements and decision-making programs.

They are used for equal, not equal, greater than, less than, greater than or equal to, and less than or equal to operations.

There are different types of relational operators as follows: