What is an operator in Python? How many types of operators?

 What is an operator?

  • Operator is symbol used to perform some operation on data values.
  • For Example 4 + 5 is equal to 9. Here 4 and 5 are called operands and + is called operator.
  •  Python language supports following type of operators.

  1. Arithmetic Operators
  2. Comparision Operators
  3. Logical (or Relational) Operators
  4. Assignment Operators
  5. Conditional (or ternary) Operators

Comments

Popular posts from this blog

Testing in Python and types of software testing

Comparison Operator in Python

First Program in Python