Bitwise Operators in Python (Part 2)

preview_player
Показать описание
Python Programming: Bitwise Operators in Python (Part 2)
Topics discussed:
1. Bitwise NOT (~) Operator.
2. 1's Compliment of a Binary Number.
3. Bitwise XOR (^) Operator.

Music:
Axol x Alex Skrindo - You [NCS Release]

#PythonByNeso #PythonProgramming #OperatorsInPython
Рекомендации по теме
Комментарии
Автор

Bro thank you so much! I passed computer networking exam recently and got the highest mark among all classmates. Your "computer networks" course is the best

blagodaren
Автор

A positive equivalent number of complement output can also be arrived at using two's compliment.
2~ = 1~ + 1
11 = 1011
therefor:
1~ of 11 = 0100
2~ = 0100 + 1
2~ = 0101
Therefor:
bin(0101) = 5
computer by default don't store negative number so it will convert negative number into positive number using two compliment. Hope this helped too!

yusufboima
Автор

You are an intelligent person sir keep doing your best nicely done

KaleabTilahun-qg
Автор

Great lecture. One of the best to understand Bitwise not operator

Musanna-dbmf
Автор

Thank you very much sir, your teaching style is very perfect

MyComputer-go
Автор

Tqq so much sir teaching style supperb and easy understand

sarswatigoutam
Автор

Sir, please upload ppts of Computer Organization and Architecture course. For the past year, students have been asking to upload but to no avail. Please do it as early as possible, sir. Thank you.

guasimolo
Автор

When I try to print ~10 in binary format, it's results -0b1011. This gives 5 in decimal. But instead of printing binary format but using print function it results -11. Please clear this.

mklakshmi
Автор

Can I get a data analysis job after doing this course

pmalik