- The relational operator is used to compare two operands to see whether they are equal to each other, unequal, or one is greater or lesser than the other.
- Comparison Operator is also called Relational Operators
|!=||Not equal to|
|< =||less than or equal to|
|> =||greater than or equal to|
Use of Comparison operators
x = 8 y = 3 print(x==y) print(x!=y) print(x<y) print(x>y) print(x<=y) print(x>=y)