============================================================
5. Bitwise Operators-------Most Imp
============================================================
=>The Purpose of Bitwise Operators is that "To Perform the Operations on Integer
Data in the form of Bit by Bit".
=>The Bitwise Operators are applicable on Integer Data But not applicable on
Floating Point Values bcoz Integer data gives Certainity where as floating point
data unable to privde Certainity .
=>The Execution Process of Bitwise Operators is given Bellow.
1.The Bitwise Operator Converts Integer Data into Binary data.
2. Depends on Type of Bitwise Operator, The Bitwise Operator
Performs On Integer Data Bit by Bit and Result
is Stored in Main Memory in the form of Binary Format
3. Since python Programming Lang is High Level, the Result of
Bitwise Operator (Binary Format) is
automatically Converted into decimal Number System.
=>The Since the Operator are performing the Operations in the form of Bit by Bit
and hence they named as bitwise
Operators.
=>In Python Programming, we have 6 Bitwise Operators. They are given in the
following Table:
-----------------------------------------------------------------------------------
-----------------------------------------------------------------
SLNO SYMBOL MEANING
-----------------------------------------------------------------------------------
-----------------------------------------------------------------
1. << Bitwise Left shift
Operator
2. >> Bitwise Right Shift
Operator
3. & Bitwise AND Operator
4. | Bitwise OR Operator
5. ~ Bitwise Complement
Operator
6. ^ Bitwise XOR Operator
-----------------------------------------------------------------------------------
-----------------------------------------------------------------