filmov
tv
Module-7 What is Relational Operators in Python | How to use Comparison Operator in Python?

Показать описание
What is Relational Operators in Python | How to use Comparison in Python?
#RelationalOperatorInPython #PythonComparisonOperators
Relational Operators are also known as comparison operators. They are used to perform the comparisons in between the statements.
These operators compare the values on either side of them and decide the relation among them. They are also called Relational operators.
These operators are:
1) == Double equal to operator
In this Operator double equal work as equal to for any comparison in the program. if the value of both operands are the same then the condition become true
2)!= Not equal to operator
In this Operator, if one of the operand values is different then the condition will be true.
3) Greater than Relational Operator
In this Operator, If the value of the left operand is greater than the value of the right operand, then the condition becomes true.
4) Less than Relational Operator
In this Operator, If the value of the left operand is less than the value of the right operand, then the condition becomes true.
5) Greater than equal to Relational Operator
In this Operator, If the value of the left operand is greater than or equal to the value of the right operand, then the condition becomes true
6) Less than equal to Relational Operator
In this Operator, If the value of the left operand is less than or equal to the value of the right operand, then the condition becomes true.
Now Get Free Video Courses, E-Books, Event Updates & Class Notes Anywhere Anytime
LEARN ANYWHERE WITH A2IT IOS AND ANDROID APP
Free Download Educational App with Step-by-Step Guide To Learn or Teach in Smarter Way
our Websites:
#RelationalOperatorInPython #PythonComparisonOperators
Relational Operators are also known as comparison operators. They are used to perform the comparisons in between the statements.
These operators compare the values on either side of them and decide the relation among them. They are also called Relational operators.
These operators are:
1) == Double equal to operator
In this Operator double equal work as equal to for any comparison in the program. if the value of both operands are the same then the condition become true
2)!= Not equal to operator
In this Operator, if one of the operand values is different then the condition will be true.
3) Greater than Relational Operator
In this Operator, If the value of the left operand is greater than the value of the right operand, then the condition becomes true.
4) Less than Relational Operator
In this Operator, If the value of the left operand is less than the value of the right operand, then the condition becomes true.
5) Greater than equal to Relational Operator
In this Operator, If the value of the left operand is greater than or equal to the value of the right operand, then the condition becomes true
6) Less than equal to Relational Operator
In this Operator, If the value of the left operand is less than or equal to the value of the right operand, then the condition becomes true.
Now Get Free Video Courses, E-Books, Event Updates & Class Notes Anywhere Anytime
LEARN ANYWHERE WITH A2IT IOS AND ANDROID APP
Free Download Educational App with Step-by-Step Guide To Learn or Teach in Smarter Way
our Websites: