In this tutorial, you will learn about Relational operators in python and Relational operators examples. These operators compare first value with another and decide the relation between them. So they are also called as relational operators. In this if value of left side operand is greater than right side operand then condition becomes true. They tell whether the operand is greater than other, lesser than, and equal or combination of both. Python is under stable for these types of operators and it will return output either”True”or”False”.
Operator Meaning:-
x=4
y=6
In this case, check if x>y result of condition is, 4 greater than 6 “FALSE”.
Check if x<y result of condition is, 4 less than 6 “TRUE”.
Check if x==y result of condition is, 4 equal to 6 “FALSE”.
Check if x! =y result of condition is, 4 not equal to 6 “TRUE”.
Check if x<=y result of condition is, 4 less than equal to 6“TRUE”.
Check if x>=y result of condition is, 4 greater than equal to 6 “FALSE”.