UNIT1 Python Operators
UNIT1 Python Operators
PYTHON OPERATORS
+ Addition
+ Addition
- Subtraction
* Multiplication
* Multiplication
/ Division
* Multiplication
/ Division
% Remainder
* Multiplication
/ Division
% Remainder
** Exponent
Parentheses ()
Exponent **
Division /
Multiplication *
== Equal to equal to
== Equal to equal to
!= Not equal to
or Logical OR
or Logical OR
or Logical OR
0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 1
0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 1
0 0 0 0 0 1
0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 1
0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 1
0 0 0 0 0 1 1 1
Python for Data Science 28
Bitwise
operators
⚫Bitwise operators can also operate on
conditional statements
Symbol Operation Example
| Bitwise OR
| Bitwise OR