Bitwise Operators in Python - Tutorial & Application Fields

preview_player
Показать описание
In this video, we learn everything about bitwise operators and we also discuss what they are used for.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

🌐 Social Media & Contact 🌐

Timestamps:
(0:00) Intro
(1:23) Bitwise Operators Explained
(15:20) Application - Flags & Permissions
(22:35) Application - XOR Variable Swap
(26:30) Application - Even or Odd
(27:34) Application - Log2 Algorithm Shifting
(28:00) Outro
Рекомендации по теме
Комментарии
Автор

I stuck on Cisco Python 3.3.5 and your explanation is much clearer. Thanks a lot.

gambichiang
Автор

Hey! Just realize you reached 100k! Congrats!

calitts
Автор

This is exactly what I've been missing about these bitwise operators!!
Thank you, great video!

kenny-kvibe
Автор

Thanks man! I really loved the Application fields. Not many youtubers list examples of applications. This is most useful.

vladimirtayzhev
Автор

Xor also has another interesting property. If you take a variable and xor it with some value, then xor it again with that same value, you get back the original variable. This makes it useful for encryption.
It was also used a lot during the early days for crude graphics manipulation.
All operators were used in 1s and 2s compliment integer math, logical reductions ( Karnaugh maps) and face it... digital computers, as they exist today, are composed of millions to billions of individual logic gates (and, or, nand, nor, xor, xnor).
Bit level math used to be the 1st item in the computer science curriculum. The fact that it is now only mentioned as a kind of obscure side note kinda gives you an indication of far down the abstraction rabbit hole we have traveled.

thomasgoodwin
Автор

Very Clear! Great Examples! Thanks
Your video came in handy for interview practice problems!

_base_
Автор

Good video. I'm a rookie and was having trouble with bitwise.

jim
Автор

Really a great explanation! Thank you.

rajchakravarthy
Автор

Please continue with the codewars challenges series, they're pretty entertaining and engaging

Sam_A
Автор

Where datt Silver play button be ❤️❤️

Congratulations!

trebelojaques
Автор

22:47 I believe this would be an effective way to swap two variables in any programming language; Heck, I just tried it in Java!

JLSXMK
Автор

Nice video bro, just want to ask what is theme of your pycharm?

bhavyamverma
Автор

How much faster is it to use bitwise operators to perform math like determining divisors or dividing by 2?

ethan
Автор

Python has both a bin() and hex() operator, I just realized!

JLSXMK
Автор

Pls bring on obsfucation in python plss

alien_X
Автор

I don't feel smart for immediately commenting before watching the video but could you do a video on a chatbot that could hold conversation and seem a bit more intelligent. I understand if not, that would be hard, no?

eepikki