What are operators in Python

Operators are symbols which are responsile to perform certain operation between two operands. For example 8 + 9 = 17, Here 8 and 9 are operands while + is operator.

Types Of Operators :--

  1.  Arithmetic Operators
  2.  Logical Operators.
  3.  Bitwise Operators.
  4.  Comparison Operators.
  5.  Assignment Operators.

Arithmetic Operators:--

OPERATORSNAMEDESCRIPTIONEXAMPLE
+AdditionAdds values on either side of the operator8 + 9 = 17
-SubtractionSubtracts right hand operand from left hand operand10 - 2 = 8
*MultiplicationMultiplies values on either side of the operator5 * 6 = 30
/DivisionDivides left hand operand by right hand operand8 / 2 = 4

 

Total Views: 447