Yes he is the Angel for the programming language,he is teaching very perfectly without doubts and easily in less time thank you so much sir if teachers like you are there in college every student become as a programmer☺
You are the just the bestt..!!!! You are lord of the programming. Seriously I paid thousands to learn python but got no clarity. and look here this is freee and in the best representation!!! thanks naveen sir! you are doing a great job!
That was the best session as of now. I loved the way you make me understand the depth of a concept. I would love to learn from you in your next videos.
I have taken so many paid courses, but never got such a brilliant explanation as clear as water like yours. A teacher can build an entire nation and people like you are the face of India, people like you are directing the young towards success, showing path. That is why we see Indian people at top in Google, top doctors from India all around. This is because you care about the rest of the people of the country, patriotism! You are providing everything for free but in a much better way than our conventional education system. You earned my respect man, from heart!! Great job! Keep doing good to society!
Iam from civil engineering,And i joined in Python Full stack development,But i don't know even basics,After searching good lecture for python, I find one of the best teacher for python is Navin sir , And this sir is teaching from scratch onwards, Now a days iam interested in python becz of you Navin sir 😌
i am very scared of coding but after watching your videos I got full confidence in myself that I can also learn programming language. thank you so much sir.
From class 10 I have been watching your channel. I never ever found anything complicated about your explanation. Mine every dought was crystal cleared by your videos. Thankyou so much sir. 👏👏👏👏👏
Yes sir nice discussion.. Sir we want at least two quality, in depth, in detailed and easily discussed videos daily from such a great instructor/teacher like you.. Lots of love and respect for you sir 🙏🙏..
Sir as we know it is scripting language. Please, Tell about how to make standalone executables from python. Use of cython and jython. Use of something which can convert all the python scripts to executables without any error for any library or for methods. I mean to say that the technique should be universal. I find difficulties in these topics. Overall you are the best now on youtube. Whenever related to any java search query on youtube, your name comes first. Quality video, audio with quality content.
The good thing about learning from online videos is that you can playback multiple times on things you don't understand at first. Took me a bunch of playbacks to understand how Complement works.
Shifting bits to the left or to the right is the same as multiplying or dividing by powers of 2. For example, shifting 2 bits to the left is the same as multiplying by binary 100, which is decimal 4 (that is, 2²), that's why 10
starting lo i was like bore untadhi emo cls anukuna but his series made me wrong.....interesting series ...chala bagunai chala helpful ga undhi .love you man ..fir this beautiful explanation.
awesome u r just superb....when i was in college that time i skip 2's complement and 1's complement due to i didnt understand all this this now i get how much interesting this topics....thank you
I am struggling to understand the use of this concept but I hope that would come sooner. Your videos are great but try to provide some of the future usages of the concept as well to keep us hooked. Thank you very much.
Today's Homework Completed 😀 1) The Complement number of 45 is 11010010 that is -46 and the complement number of 121 is 1000 0111 that is -122 . 2) (&) BIT Wise When we entered 25&30 in shell we got 24 that is 11000 in binary form . 3) XOR (^) 25^30 we got 7 because 25 and 30 become 00111 that is 7
The component of 45 is 1111010010 which is -46 and the two complètements is 111101002. And the one of 121 compliment 11110000110 and gives -122 and the two complements 11110000111
Left shift and Right shift are night mares to me(becoz they come in Written test for freshers) don't know I may be ignored to listen this concept while teaching in class becoz it comes in last of these topics and gets bored in classroom may be...but now it is really easy for me becoz even though it comes last and becoz i am watching your lecture i never gets bored till the end of video that's why i learnt this simple concept 😁
Today Homework completed sir, 1sol: The binary format of 25 is 00011001 & 30 is 00011110 25 & 30 is 00011000 so that binary format in normal number is 24. that we get output when we entered 25 & 30 2 sol: The binary format of 25 is 00011001 & 30 is 00011110 25^30 is 00000111 so that binary format in normal number is 7 that we get when we entered 25 ^30.
I'm learning it for my work because we create product labels using the Python Imaging Library (PIL), but in order to print them on our Zebra Printers we have to convert the labels to a byte array, invert the byte array (bitwise operator ^), convert them to hexadecimal, then write to the printer. Basically, when sending data between systems we have to convert the datastream to binary.
4:04 Actually -13 is the bit pattern before adding the 1. Adding the 1 gives you a way of finding the bit pattern of negative numbers. In this case when you complement the bit pattern of 12 and then add 1 you get -12 and so on
Awesome the way you teach and a good approach of teaching the concepts first... After I watched your first video, there was no going back or looking for another !! Thank you
@@hemanthrajkumar3120 Great question! The reason why 00001100 (or a similar number of bits) is used in bitwise operations is related to how computers typically handle binary numbers. Why Use More Bits: Fixed Bit Widths: In practical applications, computers usually work with fixed-width integers. Common widths are 8 bits, 16 bits, 32 bits, and 64 bits. For example, an 8-bit system will use 00001100 to represent the decimal number 12 because it needs to fit into 8 bits. Alignment and Standardization: Fixed bit widths align with computer architecture and programming languages. They ensure standardization across different systems and operations. This allows for consistent representation and manipulation of data. Bitwise Operations: When performing bitwise operations (AND, OR, XOR, etc.), the operations are performed on the fixed-width binary representations of the numbers. If you're working in an 8-bit system, numbers are padded with leading zeros to fit this width. Example: Decimal 12: In binary, 12 is 1100. In an 8-bit system: To fit into an 8-bit width, it becomes 00001100.
The main thing I missed was that the numbers are converted into binary before the bitwise operators happen; thanks! Also, a good way to think about left shift or right shift is that you are just "displacing" bits. In left shift, we displace the first n bits on the left with bits of 0 on the right (the first two bits happened to be 0, so it looked like our number was "growing") and in right shift, we displace the first n bits on the right with bits of 0 on the left.
I've a question about ~12 example that you explained. Answer for ~12 is -13 (you got this from running in Python IDLE) and then you derived -13 by performing 2's compliment. However, what if I don't know what is the actual of ~12? So, how do you really derive the answer for ~12?
In finding the complement of 12 in the paint you started to solve starting from 12 towards -13 and left it half way to come back from -13 into 12 using the 2complement formula but how would you solve the problem if you didn't know the complement was -13 in the first place.
really impressed with this video, you explained this to a person who wouldn't understand in a great way. I came here from another language and was able to draw equivalent comparison, you did a great job. Earned a sub over here =)
first --> subtract the binary number with 1 i.e., -1 second --> invert the number third --> convert the number to decimal and add (-) symbol before it thats it
You can use the bin() function to convert an integer into it’s bit sequence so: >>>int_number = 4 >>>print(bin(int_number)) ‘00000100’ Remember your output will be a string, hope this helps :)
Sir one doubt, during conversion of number into binary in IDLE, we get 12 to 0b1100, but you mentioned 12 as 00001100..I don't understand...please clarify it sir.
If I would know your earlier, I would have become the top coder ever .. Finally atleast i got to know you.. Damn greatful to got your channel sir... Keep uploading and we will keep subscribing n supporting😊😍
hi Navin quick question.,, in the binary conversion of 12 i got 1100 how do you get "00001100" . i realised same was done for bin(13) which is1101 but you have 00001101. I'm so confused
@Dileep Kumar actually no . the first number is used to represent sign that is 0 for + and 1 for - so only the last 7 bits of 8 bit is used to represent the value . For 243 , it uses 16 bit number to store in binary.
Hi Navin, Thanks firstly. Doubt: when i put 0b11110011 and hit enter in IDLE it gives me 243 as the answer instead of "-13"... I am using python3.8.3 now. and when I RUN bin(-13).. python gives -0b1101. Please clarify this
Excellent the way and methods by which you have taught the operators in python it helped easy grasping and implementation of the basics👌. Just awesome, love the way you teach❤
Hlw sir, How 11110011 represent -13. Why we interpret -13 when we have to solve complement of 12. Why is it not showing just complement of 12 which is as simple?
heres how u calculate short handedly...for complement negative nos 11110011...start count from least 1 position from continuous of 1s... i.e 111*10011...start from * onwards.... -16+2+1=-13 simmilarly if u have no 11111111111111111011... you dont have to waste time starting from begining.just start from asteric place( 1111111111111111*1011) -8+2+1=-5 and so far this is concernerd the output is giving 1's complemet not 2's complement as 12= 00001100 1's of 12 is 11110011 hence if u calculate the way above its giving -13 if python were to give 2's , 2's of 12 is 11110100 which is -14(-16+2..cal by above method) this is what i could understand. :(
Bin 45 = 0000101101 Compl of 45 = 1111010010 Now bin 46= 0000101110 - 46 = compl of 46 + 1 Compl of 46 = 1111010001 So -46 = 1111010001+1= 1111010010 Now the thing is here we are doing binary math. In this system 1+1=2 which is actually 10 I have also got confused but later i can understand.
@@shantanugupta4932 type bin (45) in the python consol. You can get the answer. Or there is a video in this channel about how to convert in binary format, you can find it on there also.
@@mahinbari6307 Hey Bro, I have understood almost everything except 1s comp + 1. Could you please explain how did you add +1 to the ~46( 1111010001)....I mean this part >>>>> 1111010001+1= 1111010010
We need lecturers like you in the colleges
so i wont go to college antmore, happy didn't happen
if that could be possible, my attendance would be 100%
@@adheshsuryatej8510 i know even if it happens your attendance still won't be 100%.
@@rajtiwari6645
😂
100%
Yes he is the Angel for the programming language,he is teaching very perfectly without doubts and easily in less time thank you so much sir if teachers like you are there in college every student become as a programmer☺
print("nice teacher of python")
loop
the ans will be Navin Sir
Ans
nice teacher of python
🙌
@@asmit6555 also 11110011 is binary form of 243. So why did it gave -13 rather than 243??
You are the just the bestt..!!!! You are lord of the programming. Seriously I paid thousands to learn python but got no clarity. and look here this is freee and in the best representation!!! thanks naveen sir! you are doing a great job!
Now you need to get your thousands back ...but I guess it has been right-shifted (x >> 10) from your wallet 🙄
That was the best session as of now. I loved the way you make me understand the depth of a concept. I would love to learn from you in your next videos.
I have taken so many paid courses, but never got such a brilliant explanation as clear as water like yours. A teacher can build an entire nation and people like you are the face of India, people like you are directing the young towards success, showing path. That is why we see Indian people at top in Google, top doctors from India all around. This is because you care about the rest of the people of the country, patriotism! You are providing everything for free but in a much better way than our conventional education system. You earned my respect man, from heart!! Great job! Keep doing good to society!
When I start learning with you I forget about questions,
You automatically tell everything
@Lightning Beast.X that’s not what he means lol
exactlyyy, cause I was searching for pi key and he was on cue
Can you say how to click right shift in windows 10
@@chandusugithi1822 it's shift+ less than symbol (
I am also aproduct from UCER
One of the best teachers I've found on youtube. Very clean explanation. Thank you.
very good videos..... actually this is the toughest one i had reached till now on his playlist of python programming
agree yaa this one is toughest till i saw
same
Wow, you just explained what 4 teachers couldn't explain in years. Just became a fan of your's.
I always had this problem figuring out the bitwise operators. But now I totally got them. Thank you 😊
Iam from civil engineering,And i joined in Python Full stack development,But i don't know even basics,After searching good lecture for python, I find one of the best teacher for python is Navin sir , And this sir is teaching from scratch onwards, Now a days iam interested in python becz of you Navin sir 😌
now r you working or not..
i m also from civil thats why i ask..
@@YourMotivationCoach1 listen I'm not saying u will get job by python, You need to be good at some other skills which is related to software fields
@@Venu0916_2K then what should I have to do?
>y) is equivalent to dividing x with 2^y.
Wow i have been watching ur videos since 4 days daily and i loved this episode😍.....u are the best teacher in u tube .
me too
Same here
Navin reddy sir u r great and best teacher. I am a passionate coder. I like ur way of teaching.
i am very scared of coding but after watching your videos I got full confidence in myself that I can also learn programming language. thank you so much sir.
Simply & Clearly Explained the concept of Bit wise Operator with calculation . Great Video series on Python.
I haven't studied this concept and after watching about 3 times I totally understood this.. thank you so much sir..🤗
One of the best programming teachers on UA-cam
From class 10 I have been watching your channel. I never ever found anything complicated about your explanation. Mine every dought was crystal cleared by your videos. Thankyou so much sir. 👏👏👏👏👏
Yes sir nice discussion.. Sir we want at least two quality, in depth, in detailed and easily discussed videos daily from such a great instructor/teacher like you.. Lots of love and respect for you sir 🙏🙏..
My teacher explained this in class today and all I understood were the shifts, now I understand all biwise operators. Thank youuu !
Sir as we know it is scripting language. Please,
Tell about how to make standalone executables from python.
Use of cython and jython.
Use of something which can convert all the python scripts to executables without any error for any library or for methods.
I mean to say that the technique should be universal.
I find difficulties in these topics.
Overall you are the best now on youtube. Whenever related to any java search query on youtube, your name comes first.
Quality video, audio with quality content.
Thanks for teaching . I am 15 and love programming thank you for being the most reliable resource and a great teacher for me.
I see Navin sir more than I see my friends nowadays XD
Never thought it so easy....why my mind is so complicated before....thank you now I can keep my mind peace without thinking much about bitwise
Easy remebering of XOR
0 xor 0=|0-0|=0
1 xor 0=|1-0|=1
0 xor 1=|0-1|=1
1 xor 1=|1-1|=0
TQ bro
hahaha .....i follow this trick too
@@DineshThakur-hv1jz no it is correct
Trick bagundhi boss tq
@@lankasushma5105 welcome🤝
The good thing about learning from online videos is that you can playback multiple times on things you don't understand at first. Took me a bunch of playbacks to understand how Complement works.
Shifting bits to the left or to the right is the same as multiplying or dividing by powers of 2.
For example, shifting 2 bits to the left is the same as multiplying by binary 100, which is decimal 4 (that is, 2²), that's why 10
Sir, the way you teach is amazing. Even after being in a medical line I do not find any difficulty in understanding anything🙏🙏
That`s great clearly explained!!!
and also interesting by showing *Nokia 1100* Fantastic
It was quite funny & interesting. Maja aaya video dekhkar.
Yes.. by seeing nokia 1100 , python performance increased by 1100%
starting lo i was like bore untadhi emo cls anukuna but his series made me wrong.....interesting series ...chala bagunai chala helpful ga undhi .love you man ..fir this beautiful explanation.
print ("best teacher")
I seen many videos on UA-cam to related this topic , but you explained this concept much better than others, thank you so much sir 😀
Zing Zing... Amazing Sir
Simply I loved your way of teaching sir.
Thanks for your vedios Sir
Hats off Sir... 👏👏👏🙏🙏🙏
awesome u r just superb....when i was in college that time i skip 2's complement and 1's complement due to i didnt understand all this this now i get how much interesting this topics....thank you
I am struggling to understand the use of this concept but I hope that would come sooner. Your videos are great but try to provide some of the future usages of the concept as well to keep us hooked. Thank you very much.
By far the best I can search on UA-cam or any other education platform.
Today's Homework Completed 😀
1) The Complement number of 45 is 11010010 that is -46 and the complement number of 121 is 1000 0111 that is -122 .
2) (&) BIT Wise
When we entered 25&30 in shell we got 24 that is 11000 in binary form .
3) XOR (^)
25^30 we got 7 because 25 and 30 become 00111 that is 7
121 compliment is 10000110
for 25 weget 11001 and 30 we get binary form 11110 now the 25 and 30 means 11000 so output is 24
The component of 45 is 1111010010 which is -46 and the two complètements is 111101002. And the one of 121 compliment 11110000110 and gives -122 and the two complements 11110000111
omg, you're really good...I subscribed just after watching the 20 seconds intro part.
Imperfect explanation for ~ operator
need help ~0 is -1 but he said 1??
and ~1 is -2
@@abhijeet800 short cut formula for ~ operator
~x=-x-1
~12=-12-1
=-13
similarly....~ -12 =-(-12)-1
=+12-1
=11
@@abhijeet800 he took an example buddy he used to say its reverse i.e., positive to negative
Left shift and Right shift are night mares to me(becoz they come in Written test for freshers) don't know I may be ignored to listen this concept while teaching in class becoz it comes in last of these topics and gets bored in classroom may be...but now it is really easy for me becoz even though it comes last and becoz i am watching your lecture i never gets bored till the end of video that's why i learnt this simple concept 😁
To find complement, use below formula:
~a=-(a+1)
Ex:
a=12
-(12+1)
-13
a=56
-(56+1)
-57
But how to compliment negative number
@@sharansharanu8722 just put the number in place of 'a'
Today Homework completed sir,
1sol: The binary format of 25 is 00011001 & 30 is 00011110
25 & 30 is 00011000 so that binary format in normal number is 24. that we get output when we entered 25 & 30
2 sol: The binary format of 25 is 00011001 & 30 is 00011110
25^30 is 00000111 so that binary format in normal number is 7 that we get when we entered 25 ^30.
My question is what is the practical use for bitwise operators?
I'm learning it for my work because we create product labels using the Python Imaging Library (PIL), but in order to print them on our Zebra Printers we have to convert the labels to a byte array, invert the byte array (bitwise operator ^), convert them to hexadecimal, then write to the printer.
Basically, when sending data between systems we have to convert the datastream to binary.
4:04 Actually -13 is the bit pattern before adding the 1. Adding the 1 gives you a way of finding the bit pattern of negative numbers. In this case when you complement the bit pattern of 12 and then add 1 you get -12 and so on
Thnx sir you explained much more easy-going
Easy way to remember the compliment, ~n means -(n+1). Ex: ~6, output will -7. or ~18, output will be -19... :D
Thank you ; )
thank you @chandan Hegada
Yes this is the part that he neglected to explain
Awesome the way you teach and a good approach of teaching the concepts first... After I watched your first video, there was no going back or looking for another !! Thank you
Why 12 is 00001100 it should be only 1100 according to your previous video
Can someone please tell, why 8bit binary has been taken for ~12?
Have u got the ans???
yrr did u got the ans ?
00001100 is the same as 1100, just like 00012 is the same as 12
Zeroes to the left don't change the number.
zeroes before 1100 doesnt matter
I have a good amount of python experience, but was still unfamiliar with this concept. I am glad you helped me :)
Awesome lesson. It really helped me understand left and right shift bitwise operators. Thank you!
i very much enjoying this session sometimes i stuck at coding but i can easily get solution,
very nice teacher
I am having so much fun, thank you.
Sir,It is making very interesting with ur resources and way of teaching
I've understood a concept which I couldn't since the first time! It's amazing how programming has helped me to learn math problems xD
yes
Navin you re a hero without a cape , very appreciate for that lectures you deserve the best always .
isn't the binary of 12=1100 why is 000001100 used there
Even I'm getting the same doubt now
@@hemanthrajkumar3120 Great question! The reason why 00001100 (or a similar number of bits) is used in bitwise operations is related to how computers typically handle binary numbers.
Why Use More Bits:
Fixed Bit Widths:
In practical applications, computers usually work with fixed-width integers. Common widths are 8 bits, 16 bits, 32 bits, and 64 bits.
For example, an 8-bit system will use 00001100 to represent the decimal number 12 because it needs to fit into 8 bits.
Alignment and Standardization:
Fixed bit widths align with computer architecture and programming languages. They ensure standardization across different systems and operations.
This allows for consistent representation and manipulation of data.
Bitwise Operations:
When performing bitwise operations (AND, OR, XOR, etc.), the operations are performed on the fixed-width binary representations of the numbers.
If you're working in an 8-bit system, numbers are padded with leading zeros to fit this width.
Example:
Decimal 12:
In binary, 12 is 1100.
In an 8-bit system:
To fit into an 8-bit width, it becomes 00001100.
Thanks Guruji,
I am a non tech person, learning python as first language and no where I found this detail explanation of things.
Thanks Again :)
where exactly do we apply bitwise operators when we are programming; can u please make a tutorial for that please
No way! It's like magic, I'm 10 years old and I love your videos alot! Navin sir rocks!
Sir, your way of explaining is truely amazing
We can study and have fun at the same
Sir really amazing.
Hats off😊😊😊😊😊😊😊
The main thing I missed was that the numbers are converted into binary before the bitwise operators happen; thanks!
Also, a good way to think about left shift or right shift is that you are just "displacing" bits. In left shift, we displace the first n bits on the left with bits of 0 on the right (the first two bits happened to be 0, so it looked like our number was "growing") and in right shift, we displace the first n bits on the right with bits of 0 on the left.
I've a question about ~12 example that you explained. Answer for ~12 is -13 (you got this from running in Python IDLE) and then you derived -13 by performing 2's compliment. However, what if I don't know what is the actual of ~12? So, how do you really derive the answer for ~12?
same question
Sir Your a gift from Heaven!
In finding the complement of 12 in the paint you started to solve starting from 12 towards -13 and left it half way to come back from -13 into 12 using the 2complement formula but how would you solve the problem if you didn't know the complement was -13 in the first place.
Yeah I had the question in my mind too!😂
No he was saying that the 12 is equal to -13 in bits that's it.
@@omkarjsuvarna Got it 👍😊
I'm very thankful to this channel which gives me better knowledge about technologies.... 💞💖💞💖💞
teaching skills 💯
you got this subscriber sir 😊
really impressed with this video, you explained this to a person who wouldn't understand in a great way. I came here from another language and was able to draw equivalent comparison, you did a great job. Earned a sub over here =)
Sir can you give some questions for practice in text file related to the the topic as homework, in the description? it will help us alot.
You are super boss, I just can't believe that, now I have a deep concept about bitwise operetor. Best of luck for you.
I am enjoying this series, nice explanations.
Thank you
Thank You Sir for your Guidance 🙂I am School Student preparing for my future 😌You are making my efforts easy Navin Sir,So Thank You So Much😌😌
11110011 how can we tell this is -13 without compare this with result.
and how to convert 11110011 into number (-13)?
first --> subtract the binary number with 1 i.e., -1
second --> invert the number
third --> convert the number to decimal and add (-) symbol before it thats it
Same here I don't understand that too...
@@devkumarjacks201 go through most significant bit concept
Did you get the answer?? @shaik
You can use the bin() function to convert an integer into it’s bit sequence so:
>>>int_number = 4
>>>print(bin(int_number))
‘00000100’
Remember your output will be a string, hope this helps :)
Best python videos I could find on you tube, thank you very much!
Sir one doubt, during conversion of number into binary in IDLE, we get 12 to 0b1100, but you mentioned 12 as 00001100..I don't understand...please clarify it sir.
here 0000 represents that 12 is+ve number and 1111 rep that 13 is -ve number
@@yamisingh7433 thanks for clarifying.
Best resource to learn data structures and algorithms using python
Hlo sir,
I am watching your video on python for long time and I found them much helpful. THANKS for making such an great videos for us
no second thought of searching for other python tutorials after watching this ,fabulous explaination👏👏
Thank you so much for this video. It was clear and easy to follow!
If I would know your earlier, I would have become the top coder ever .. Finally atleast i got to know you.. Damn greatful to got your channel sir... Keep uploading and we will keep subscribing n supporting😊😍
hey are u telugu
10:18 "but we ignore zeros because they are zeroes"
zeroes - "Am i a joke to you?" 😂
Aryabhata wants to know your location
Wonderful explanation . Got interest on coding after listening to your classes
hi Navin quick question.,,
in the binary conversion of 12 i got 1100 how do you get "00001100" .
i realised same was done for bin(13) which is1101 but you have 00001101.
I'm so confused
Yes,I also got same doubt.
it is a 8-bit number
your teaching skill is just amazing... love you...💕
print("the way naveen sir teach is superb")
print("thank you")
Thank you so much
You really made python easier for me
The ways you explained each concept is amazing.
sir, if binary format for -13 is 11110011, then what is the binary format of 243??? is it same?
I too have this doubt
@Dileep Kumar actually no . the first number is used to represent sign that is 0 for + and 1 for - so only the last 7 bits of 8 bit is used to represent the value . For 243 , it uses 16 bit number to store in binary.
@@rgk1579 ^^
243 is a 16-bit number
In 2024 also the best python series❤
Navin the Creator 😊
Hi Navin,
Thanks firstly.
Doubt: when i put 0b11110011 and hit enter in IDLE it gives me 243 as the answer instead of "-13"...
I am using python3.8.3 now. and when I RUN bin(-13).. python gives -0b1101.
Please clarify this
+ same problem here
Excellent the way and methods by which you have taught the operators in python it helped easy grasping and implementation of the basics👌. Just awesome, love the way you teach❤
Thank u sir
For this treasure video..
learning in 22 thanks you alot sir this course is just full with energy.
sir binary format of 12 is 0b1100 then why 0000 at the start from where they came.
Yes bro same doubt
to convert it into 8 bit. he added 0000.
the preceding zeros, 0b1100 == 0b00000.....000001100
@@niviten why it's necessary to convert it to 8bit?
@@debabrataiam2019 : integer data type storage size is 1byte =8bits. All these values in integer data type therefor we are converting them to 8 bits.
Thank u sir.. What u r offering us is such a great help for us as beginners. Lots of LOVE.
Hlw sir,
How 11110011 represent -13.
Why we interpret -13 when we have to solve complement of 12.
Why is it not showing just complement of 12 which is as simple?
Same dought bro
Same confusion.. 🙄
That is 2's complement is equal to the 13 's complement that we are saying complement of 12 is equal to -13
he interpreted -13 to show that -13 and ~12 are the same when converting them to binary..thats why it shows -13 when we run ~12..
heres how u calculate short handedly...for complement negative nos
11110011...start count from least 1 position from continuous of 1s...
i.e 111*10011...start from * onwards.... -16+2+1=-13
simmilarly if u have no
11111111111111111011... you dont have to waste time starting from begining.just start from asteric place( 1111111111111111*1011)
-8+2+1=-5
and so far this is concernerd the output is giving 1's complemet not 2's complement
as 12= 00001100
1's of 12 is 11110011 hence if u calculate the way above its giving -13
if python were to give 2's , 2's of 12 is 11110100 which is -14(-16+2..cal by above method)
this is what i could understand. :(
Short and precise crystal clear sir, kudos to you!!!
Sir I can't find the compliment of ~45
(Can anyone help me in finding it out)
I am getting 17 as the output but it's wrong
Answer is -46
Bin 45 = 0000101101
Compl of 45 = 1111010010
Now bin 46= 0000101110
- 46 = compl of 46 + 1
Compl of 46 = 1111010001
So -46 = 1111010001+1= 1111010010
Now the thing is here we are doing binary math. In this system 1+1=2 which is actually 10
I have also got confused but later i can understand.
@@mahinbari6307 can you explain me how you find bin 45 = 0000101101
@@mahinbari6307 tnx brother
@@shantanugupta4932 type bin (45) in the python consol. You can get the answer.
Or there is a video in this channel about how to convert in binary format, you can find it on there also.
@@mahinbari6307 Hey Bro, I have understood almost everything except 1s comp + 1. Could you please explain how did you add +1 to the ~46( 1111010001)....I mean this part >>>>> 1111010001+1= 1111010010
Sir your videos are very helpful and easily learnable.THANK YOU FOR THIS VIDEOS
Your channel name "Telusko" mean. To be known in "Telugu"❤️
wat
Please type....print(' Navin sir is the best teacher in the world') .. 👍👍🥰🥰🙂.. Big fan..