#15 Python Tutorial for Beginners | Python BitWise Operators



#15 Python Tutorial for Beginners | Python BitWise Operators

#15 Python Tutorial for Beginners | Python BitWise Operators

Mastering Java and Spring Boot – Live Course : https://bit.ly/TeluskoJavaLive

Business Inquiry : [email protected]

For More Queries WhatsApp or Call on : +919008963671

TELUSKO Android App : https://bit.ly/TeluskoApp

In this lecture we will learn:
– What are Bitwise operators in Python?
– Different types of bitwise operators
– How operations performed on bits
– Implementation of bitwise operations

#1
– In bitwise operations, the integers are first converted into binary and then operations are performed by bitwise operators on each bit or corresponding pair of bits.
– The result is returned in decimal format by the bitwise operators.
– There are six types of binary operators:-
1. Complement (~)
2. And (&)
3. Or (|)
4. XOR (^)
5. Left Shift
6. Right Shift

#2
– Complement operator is also known as tilde(~) operator.
– Complement simply do the reverse of binary form. If a bit is 0 then it makes it 1 and vice-versa.
– Reverse of each bit of a number returns the 1’s complement.
– We can store only positive numbers in our system and that’s why we find the 2’s complement of each negative number.
2’s complement = 1’s complement +1

#3
-AND operator will return true if both the conditions are true while the OR operator will return true if at least one condition is true.

#4
– XOR operator will return 1 or true when there is an odd number of 1 bit present in operations and if there is an even number of 1, then it will return 0.

#5
– Leftshift operator shift bits on the left-hand side. The right-shift operator shifts bits on the right-hand side.
– Leftshift add the bits while the right-side removes the bits.

Github :- https://github.com/navinreddy20/Python-

Python for Beginners :- http://bit.ly/3JOLQhl

Java:- https://bit.ly/JavaUdemyTelusko
Spring:- https://bit.ly/SpringUdemyTelusko

More Learning :

Java :- https://bit.ly/3x6rr0N
Python :- https://bit.ly/3GRc7JX
Django :- https://bit.ly/3MmoJK6

JavaScript :- https://bit.ly/3tiAlHo
Node JS :- https://bit.ly/3GT4liq

Rest Api :-https://bit.ly/3MjhZwt
Servlet :- https://bit.ly/3Q7eA7k
Spring Framework :- https://bit.ly/3xi7buh
Design Patterns in Java :- https://bit.ly/3MocXiq
Docker :- https://bit.ly/3xjWzLA

Blockchain Tutorial :- https://bit.ly/3NSbOkc
Corda Tutorial:- https://bit.ly/3thbUKa
Hyperledger Fabric :- https://bit.ly/38RZCRB

NoSQL Tutorial :- https://bit.ly/3aJpRuc
Mysql Tutorial :- https://bit.ly/3thpr4L

Data Structures using Java :- https://bit.ly/3MuJa7S
Git Tutorial :- https://bit.ly/3NXyCPu

Donation:
PayPal Id : navinreddy20
https://www.telusko.com