Python Operator
Python Operator

Python Operator

Python has several operators that we can use to perform different mathematical, logical, and boolean operations on data. Learning the operators is an excellent place to start to learn Python. Operators are special symbols that perform specific operations on one or more operands (values) and then return a result. For example, you can calculate the sum of two numbers using an addition (+) operator.

image

Python has seven types of operators that we can use to perform different operation and produce a result.

  1. Arithmetic operator
  2. Relational operators
  3. Assignment operators
  4. Logical operators
  5. Membership operators
  6. Identity operators
  7. Bitwise operators

Types of Python Operators

1. Arithmetic Operators

2. Relational (Comparison) Operators

3. Assignment Operators

4. Logical Operators

5. Membership operators

6. Identity operators

7. Bitwise Operators