Relational operators in python

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”.

The list of operators available includes:

  1. Less  than → used with “<”.
  2. Greater than → used with “>”.
  3. Equal to → used with “==”.
  4. Not equal to → used with! “=”.
  5. Less than or equal to → used with “<=”.
  6. Greater than or equal to → used with “>=”.

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”.

Additional Services : Refurbished Laptops Sales, Python Classes, Share Market Classes And SEO Freelancer in Pune, India