Python Operators - thelastmile/FreeCodeCamp GitHub Wiki
Python Operations and Operators
- Truth Value Testing
- Boolean Operations
- Parenthesis for boolean operations
- Comparisons
- Numeric Operations
- Using interactive mode as a calculator
Operators are the constructs which can manipulate the value of operands.
Consider the expression 4 + 5 = 9
. Here, 4
and 5
are called operands and +
is called operator.
Types of Operator
Python language supports the following types of operators.
- Arithmetic Operators
- Comparison (Relational) Operators
- Assignment Operators
- Logical Operators
- Bitwise Operators
- Membership Operators
- Identity Operators
We shall be covering a few more in-built types next.