Using Python operators, a programmer can manipulate the value of operands. For example, if we write 1 + 2 = 3, then 1 and 2 are operands and ‘+’ is an arithmetic operator. In Python, there are different types of operators.
- Arithmetic Operators
- Assignment Operators
- Logical Operators
- Comparison Operators
- Bitwise Operators
- Identity Operators
- Membership Operators
1. Python Arithmetic Operators
Python uses the following arithmetic operators: +, -, *, /, //, %, **
+, -, *, / are the basic addition, subtraction, multiplication, and division operators. One can use them in the following way:
# Python operators value = ((((1 + 2) - 3) * 4) / 5) print(value)
The output will be:






0 Comments