Python Notes
Python Notes
Equality Operators
Logical Operators
Non-Boolean Operators
Returns
and x if false , returns y if true
x Operator y o/p Comments
100
101
---------
4 & 5 4 100-4
Bitwise and Operator (|)
x Operator y o/p Comments
100
101
---------
4 | 5 5 101-5
Bitwise exclusively or operator ^ ( if both are different then true)
100
101
---------
4 | 5 1 001-1
Bitwise complement Operator (^)