Hello Pythonist, here in this post I wiould like to share you about the all Python operators how they can coperates on the literals and variables at different sinarios. Unlike any other Programming languages, Python supports wide variety of operators.
- Logical operators
- Comparison operators
- Bitwise operators
Let's explore more ...
Logical Operators
The Python Logical operators are simple English words
- and
- or
- not
All these above operators returns boolean values based on the combination of operands.
Comparison operators
There are several comparison operators as >, <, >=, <=, ==, !=
Also in operators
Bitwise Operators
Binary number 0 and 1 will be used as operands bitwise operators & | ^ and ~ allow us to manipulate single bits of data and they returns 0 or 1 based on the data bit values passed.
Python Bit-wise Operators |
Bit shift operators
- Left bit-shift operator <<
- Right bit-shift operator >>
Thanks for sharing the information.
ReplyDeletesap pi training