#14 Python Tutorial for Beginners | Python BitWise Operators

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ส.ค. 2024
  • Check out our courses:
    Enterprise Java Spring Microservices: go.telusko.com/enterpriseJava
    Coupon: TELUSKO10 (10% Discount)
    Master Java Spring Development : go.telusko.com/masterjava
    Coupon: TELUSKO20 (20% Discount)
    Udemy Courses:
    Spring: go.telusko.com/udemyteluskosp...
    Java:- go.telusko.com/udemyteluskojava
    Java Spring:- go.telusko.com/Udemyjavaspring
    Java For Programmers:- go.telusko.com/javaProgrammers
    Python : go.telusko.com/udemyteluskopy...
    Git : go.telusko.com/udemyteluskogit
    Docker : go.telusko.com/udemyteluskodo...
    For More Queries WhatsApp or Call on : +919008963671
    website : courses.telusko.com/
    Instagram : / navinreddyofficial
    Linkedin : / navinreddy20
    TELUSKO Android App : 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 :- github.com/navinreddy20/Python-
    Python for Beginners :- bit.ly/3JOLQhl
    Java:- bit.ly/JavaUdemyTelusko
    Spring:- bit.ly/SpringUdemyTelusko
    More Learning :
    Java :- bit.ly/3x6rr0N
    Python :- bit.ly/3GRc7JX
    Django :- bit.ly/3MmoJK6
    JavaScript :- bit.ly/3tiAlHo
    Node JS :- bit.ly/3GT4liq
    Rest Api :-bit.ly/3MjhZwt
    Servlet :- bit.ly/3Q7eA7k
    Spring Framework :- bit.ly/3xi7buh
    Design Patterns in Java :- bit.ly/3MocXiq
    Docker :- bit.ly/3xjWzLA
    Blockchain Tutorial :- bit.ly/3NSbOkc
    Corda Tutorial:- bit.ly/3thbUKa
    Hyperledger Fabric :- bit.ly/38RZCRB
    NoSQL Tutorial :- bit.ly/3aJpRuc
    Mysql Tutorial :- bit.ly/3thpr4L
    Data Structures using Java :- bit.ly/3MuJa7S
    Git Tutorial :- bit.ly/3NXyCPu
    Donation:
    PayPal Id : navinreddy20
    www.telusko.com
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 1.4K

  • @jokergaming3884
    @jokergaming3884 5 ปีที่แล้ว +526

    print("nice teacher of python")

    • @vedclove
      @vedclove 4 ปีที่แล้ว +3

      loop

    • @technicprince5011
      @technicprince5011 4 ปีที่แล้ว +15

      the ans will be Navin Sir

    • @AI_CANISTER
      @AI_CANISTER 3 ปีที่แล้ว +1

      Ans
      nice teacher of python

    • @asmit6555
      @asmit6555 3 ปีที่แล้ว +1

      🙌

    • @__vijay__kumar
      @__vijay__kumar 3 ปีที่แล้ว +7

      @@asmit6555 also 11110011 is binary form of 243. So why did it gave -13 rather than 243??

  • @farmerfomIndia
    @farmerfomIndia 6 ปีที่แล้ว +434

    We need lecturers like you in the colleges

    • @XJacksonvilleX
      @XJacksonvilleX 4 ปีที่แล้ว +7

      so i wont go to college antmore, happy didn't happen

    • @adheshsuryatej8510
      @adheshsuryatej8510 3 ปีที่แล้ว +13

      if that could be possible, my attendance would be 100%

    • @rajtiwari6645
      @rajtiwari6645 3 ปีที่แล้ว +9

      @@adheshsuryatej8510 i know even if it happens your attendance still won't be 100%.

    • @abhileswar
      @abhileswar ปีที่แล้ว +1

      @@rajtiwari6645
      😂

    • @tanveershaik5832
      @tanveershaik5832 ปีที่แล้ว +1

      100%

  • @sathi-mu3tk
    @sathi-mu3tk 3 ปีที่แล้ว +45

    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☺

  • @nehaaadarsh
    @nehaaadarsh 4 ปีที่แล้ว +145

    When I start learning with you I forget about questions,
    You automatically tell everything

    • @axisaligned9799
      @axisaligned9799 3 ปีที่แล้ว

      @Lightning Beast.X that’s not what he means lol

    • @meenakshi.v7385
      @meenakshi.v7385 3 ปีที่แล้ว

      exactlyyy, cause I was searching for pi key and he was on cue

    • @chandusugithi1822
      @chandusugithi1822 3 ปีที่แล้ว

      Can you say how to click right shift in windows 10

    • @letmecode1767
      @letmecode1767 3 ปีที่แล้ว

      @@chandusugithi1822 it's shift+ less than symbol (

    • @rupeshagrawal9600
      @rupeshagrawal9600 3 ปีที่แล้ว

      I am also aproduct from UCER

  • @Dhananjoybhatta123
    @Dhananjoybhatta123 4 ปีที่แล้ว +23

    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.

  • @Hrit
    @Hrit 3 ปีที่แล้ว +6

    One of the best teachers I've found on youtube. Very clean explanation. Thank you.

  • @gabs_sauce
    @gabs_sauce 4 หลายเดือนก่อน +2

    My teacher explained this in class today and all I understood were the shifts, now I understand all biwise operators. Thank youuu !

  • @vahidrezaarabpour
    @vahidrezaarabpour 4 ปีที่แล้ว +8

    I always had this problem figuring out the bitwise operators. But now I totally got them. Thank you 😊

  • @nimitagarwal6352
    @nimitagarwal6352 3 ปีที่แล้ว +28

    very good videos..... actually this is the toughest one i had reached till now on his playlist of python programming

  • @GiovaniGalicia
    @GiovaniGalicia 5 ปีที่แล้ว +3

    Awesome lesson. It really helped me understand left and right shift bitwise operators. Thank you!

  • @suraimrashid6330
    @suraimrashid6330 3 ปีที่แล้ว +2

    Wow, you just explained what 4 teachers couldn't explain in years. Just became a fan of your's.

  • @chowdhurym782
    @chowdhurym782 2 ปีที่แล้ว +2

    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!

  • @farhanaziz1177
    @farhanaziz1177 2 ปีที่แล้ว +3

    One of the best programming teachers on TH-cam

  • @varunjha7731
    @varunjha7731 6 ปีที่แล้ว +7

    Simply & Clearly Explained the concept of Bit wise Operator with calculation . Great Video series on Python.

  • @itsme-fv7wq
    @itsme-fv7wq 2 ปีที่แล้ว +1

    I seen many videos on TH-cam to related this topic , but you explained this concept much better than others, thank you so much sir 😀

  • @arpitlakra4365
    @arpitlakra4365 2 ปีที่แล้ว +1

    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. 👏👏👏👏👏

  • @rbk.technology4747
    @rbk.technology4747 4 ปีที่แล้ว +3

    Navin reddy sir u r great and best teacher. I am a passionate coder. I like ur way of teaching.

  • @user-ij9gi3ec2u
    @user-ij9gi3ec2u ปีที่แล้ว +3

    I haven't studied this concept and after watching about 3 times I totally understood this.. thank you so much sir..🤗

  • @arnavkumar804
    @arnavkumar804 4 ปีที่แล้ว +1

    Thanks for teaching . I am 15 and love programming thank you for being the most reliable resource and a great teacher for me.

  • @samrudhraja224
    @samrudhraja224 4 ปีที่แล้ว +28

    I see Navin sir more than I see my friends nowadays XD

  • @sachinkoli8775
    @sachinkoli8775 6 ปีที่แล้ว +4

    I am enjoying this series, nice explanations.
    Thank you

  • @rajpanday1911
    @rajpanday1911 4 ปีที่แล้ว +10

    isn't the binary of 12=1100 why is 000001100 used there

  • @haritgupta4443
    @haritgupta4443 2 ปีที่แล้ว +1

    Sir, the way you teach is amazing. Even after being in a medical line I do not find any difficulty in understanding anything🙏🙏

  • @umadevipathiwada6933
    @umadevipathiwada6933 ปีที่แล้ว +2

    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.

  • @adilsher
    @adilsher 4 ปีที่แล้ว +10

    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

  • @souadlalune9415
    @souadlalune9415 4 ปีที่แล้ว +11

    I am having so much fun, thank you.

  • @shivaprasadmallikarjunaiah3751
    @shivaprasadmallikarjunaiah3751 ปีที่แล้ว +1

    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

  • @DarkYuugen
    @DarkYuugen 3 ปีที่แล้ว +2

    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.

  • @easy_abhiyantriki
    @easy_abhiyantriki ปีที่แล้ว +5

    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!

    • @shivaprasadmallikarjunaiah3751
      @shivaprasadmallikarjunaiah3751 ปีที่แล้ว

      Now you need to get your thousands back ...but I guess it has been right-shifted (x >> 10) from your wallet 🙄

  • @srikiran6658
    @srikiran6658 5 ปีที่แล้ว +9

    Wow i have been watching ur videos since 4 days daily and i loved this episode😍.....u are the best teacher in u tube .

  • @dipankargupta3365
    @dipankargupta3365 4 ปีที่แล้ว +2

    your teaching skill is just amazing... love you...💕

  • @keyurpatel5248
    @keyurpatel5248 5 ปีที่แล้ว +2

    Sir your videos are very helpful and easily learnable.THANK YOU FOR THIS VIDEOS

  • @chinmaydas4053
    @chinmaydas4053 6 ปีที่แล้ว +49

    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 🙏🙏..

  • @keonook
    @keonook 4 ปีที่แล้ว +3

    Thank you so much for this video. It was clear and easy to follow!

  • @alkhiljohn3813
    @alkhiljohn3813 2 ปีที่แล้ว +1

    I have a good amount of python experience, but was still unfamiliar with this concept. I am glad you helped me :)

  • @yugandharsurya
    @yugandharsurya 4 ปีที่แล้ว +1

    I'm very thankful to this channel which gives me better knowledge about technologies.... 💞💖💞💖💞

  • @cnu4a2
    @cnu4a2 5 ปีที่แล้ว +7

    Zing Zing... Amazing Sir
    Simply I loved your way of teaching sir.
    Thanks for your vedios Sir
    Hats off Sir... 👏👏👏🙏🙏🙏

  • @Shivam_Jaiswal64
    @Shivam_Jaiswal64 6 ปีที่แล้ว +12

    That`s great clearly explained!!!
    and also interesting by showing *Nokia 1100* Fantastic

    • @pramodkajla
      @pramodkajla 5 ปีที่แล้ว +1

      It was quite funny & interesting. Maja aaya video dekhkar.

    • @zuberkhan-kn7iu
      @zuberkhan-kn7iu 3 ปีที่แล้ว +1

      Yes.. by seeing nokia 1100 , python performance increased by 1100%

  • @nimzeevlog3278
    @nimzeevlog3278 2 ปีที่แล้ว +1

    Thank you so much
    You really made python easier for me
    The ways you explained each concept is amazing.

  • @nisakamal
    @nisakamal ปีที่แล้ว +1

    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

  • @yashm05
    @yashm05 5 ปีที่แล้ว +3

    teaching skills 💯
    you got this subscriber sir 😊

  • @gauravpandey1454
    @gauravpandey1454 5 ปีที่แล้ว +4

    >y) is equivalent to dividing x with 2^y.

  • @KRK_videos
    @KRK_videos 3 ปีที่แล้ว +2

    Sir,It is making very interesting with ur resources and way of teaching

  • @danielmehari4831
    @danielmehari4831 5 ปีที่แล้ว +1

    Thank u sir.. What u r offering us is such a great help for us as beginners. Lots of LOVE.

  • @vipinmittal8542
    @vipinmittal8542 6 ปีที่แล้ว +7

    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.

  • @subramaniamr5723
    @subramaniamr5723 5 ปีที่แล้ว +20

    print ("best teacher")

  • @tejveersingh7791
    @tejveersingh7791 ปีที่แล้ว +1

    i very much enjoying this session sometimes i stuck at coding but i can easily get solution,
    very nice teacher

  • @astwo26
    @astwo26 ปีที่แล้ว +1

    Navin you re a hero without a cape , very appreciate for that lectures you deserve the best always .

  • @gladyouseen8160
    @gladyouseen8160 5 ปีที่แล้ว +28

    Imperfect explanation for ~ operator

    • @abhijeet800
      @abhijeet800 4 ปีที่แล้ว +6

      need help ~0 is -1 but he said 1??
      and ~1 is -2

    • @syedakbarhussain3725
      @syedakbarhussain3725 4 ปีที่แล้ว +21

      @@abhijeet800 short cut formula for ~ operator
      ~x=-x-1
      ~12=-12-1
      =-13
      similarly....~ -12 =-(-12)-1
      =+12-1
      =11

    • @mr.respect9728
      @mr.respect9728 3 ปีที่แล้ว

      @@abhijeet800 he took an example buddy he used to say its reverse i.e., positive to negative

  • @rv2007
    @rv2007 5 ปีที่แล้ว +4

    Thank u sir
    For this treasure video..

  • @sultanmahmud5066
    @sultanmahmud5066 4 ปีที่แล้ว

    You are super boss, I just can't believe that, now I have a deep concept about bitwise operetor. Best of luck for you.

  • @ritikakulkarni4589
    @ritikakulkarni4589 4 ปีที่แล้ว +1

    Amazing way of teaching sir! Thank you so much 🙌

  • @Venu0916_2K
    @Venu0916_2K ปีที่แล้ว +13

    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 😌

    • @YourMotivationCoach1
      @YourMotivationCoach1 8 หลายเดือนก่อน

      now r you working or not..
      i m also from civil thats why i ask..

    • @Venu0916_2K
      @Venu0916_2K 8 หลายเดือนก่อน

      @@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

    • @YourMotivationCoach1
      @YourMotivationCoach1 8 หลายเดือนก่อน

      ​@@Venu0916_2K then what should I have to do?

  • @collinsaharley-bright4399
    @collinsaharley-bright4399 3 ปีที่แล้ว +5

    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

    • @harshithag7069
      @harshithag7069 11 หลายเดือนก่อน

      Yes,I also got same doubt.

    • @pvrani1906
      @pvrani1906 หลายเดือนก่อน

      it is a 8-bit number

  • @datascience6718
    @datascience6718 4 ปีที่แล้ว +1

    Short and precise crystal clear sir, kudos to you!!!

  • @srinivasasetty2365
    @srinivasasetty2365 4 ปีที่แล้ว +1

    Sir you are great sir. Thanks a lot for all your videos.In this lockdown it is very much interesting and fun to learn python by watching your videos .
    Thank you once again sir.🙏

  • @just_a_living_being
    @just_a_living_being 6 ปีที่แล้ว +4

    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.

  • @IamRaeen
    @IamRaeen 5 ปีที่แล้ว +35

    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.

  • @piiaall
    @piiaall 4 ปีที่แล้ว +2

    i love your unique style of teaching ^-^

  • @parneetsekhon3789
    @parneetsekhon3789 3 ปีที่แล้ว +1

    Best python videos I could find on you tube, thank you very much!

  • @Jeity_
    @Jeity_ 4 ปีที่แล้ว +6

    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

  • @ogolasaura1805
    @ogolasaura1805 3 ปีที่แล้ว +6

    where exactly do we apply bitwise operators when we are programming; can u please make a tutorial for that please

  • @qonitaadestyanti8307
    @qonitaadestyanti8307 4 ปีที่แล้ว

    easy to understand for me as a beginner, I recommend you to watching this

  • @valleykid6577
    @valleykid6577 3 ปีที่แล้ว +1

    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 =)

  • @satishraghav320
    @satishraghav320 4 ปีที่แล้ว +12

    Sir, your way of explaining is truely amazing
    We can study and have fun at the same
    Sir really amazing.
    Hats off😊😊😊😊😊😊😊

  • @anshtanwar1813
    @anshtanwar1813 5 ปีที่แล้ว +84

    Why 12 is 00001100 it should be only 1100 according to your previous video

    • @prateekmathur5898
      @prateekmathur5898 5 ปีที่แล้ว +5

      Can someone please tell, why 8bit binary has been taken for ~12?

    • @harshitchaubey8274
      @harshitchaubey8274 5 ปีที่แล้ว

      Have u got the ans???

    • @westinsightshub1379
      @westinsightshub1379 5 ปีที่แล้ว

      yrr did u got the ans ?

    • @TheEmptyForever
      @TheEmptyForever 5 ปีที่แล้ว +29

      00001100 is the same as 1100, just like 00012 is the same as 12
      Zeroes to the left don't change the number.

    • @madanmohanar1380
      @madanmohanar1380 5 ปีที่แล้ว +6

      zeroes before 1100 doesnt matter

  • @mayurpatil1526
    @mayurpatil1526 4 ปีที่แล้ว +1

    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

  • @sathya8242
    @sathya8242 5 ปีที่แล้ว +2

    hats off to you sir,very impressive teaching!!!!

  • @piyush4338
    @piyush4338 5 ปีที่แล้ว +4

    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

  • @64imma
    @64imma ปีที่แล้ว +8

    My question is what is the practical use for bitwise operators?

    • @COValhalla
      @COValhalla ปีที่แล้ว +2

      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.

  • @Bikash-Debnath
    @Bikash-Debnath 2 ปีที่แล้ว +1

    By far the best I can search on TH-cam or any other education platform.

  • @bankavinay5890
    @bankavinay5890 4 ปีที่แล้ว

    Indeed we need lecturers like you

  • @tarunsani448
    @tarunsani448 4 ปีที่แล้ว +6

    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.

    • @yamisingh7433
      @yamisingh7433 4 ปีที่แล้ว +3

      here 0000 represents that 12 is+ve number and 1111 rep that 13 is -ve number

    • @tarunsani448
      @tarunsani448 4 ปีที่แล้ว

      @@yamisingh7433 thanks for clarifying.

  • @pacedelacruz4913
    @pacedelacruz4913 5 ปีที่แล้ว +4

    Thank you for this!!

  • @sagarkamble2947
    @sagarkamble2947 4 ปีที่แล้ว +1

    Really, you are great teacher. Thank you

  • @shrutikuhar5786
    @shrutikuhar5786 2 ปีที่แล้ว +2

    omg, you're really good...I subscribed just after watching the 20 seconds intro part.

  • @sufiyanmogal1527
    @sufiyanmogal1527 2 ปีที่แล้ว +17

    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

    • @venkatlakshmi1288
      @venkatlakshmi1288 2 ปีที่แล้ว +1

      121 compliment is 10000110

    • @prasannakamana2621
      @prasannakamana2621 ปีที่แล้ว

      for 25 weget 11001 and 30 we get binary form 11110 now the 25 and 30 means 11000 so output is 24

    • @VictorMonday-lq3xs
      @VictorMonday-lq3xs 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

  • @bissiratnegusse5716
    @bissiratnegusse5716 4 ปีที่แล้ว +3

    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.

    • @shrutykaej2284
      @shrutykaej2284 3 ปีที่แล้ว

      Yeah I had the question in my mind too!😂

    • @omkarjsuvarna
      @omkarjsuvarna 2 ปีที่แล้ว +1

      No he was saying that the 12 is equal to -13 in bits that's it.

    • @shrutykaej2284
      @shrutykaej2284 2 ปีที่แล้ว

      @@omkarjsuvarna Got it 👍😊

  • @suhaskshirsagar5202
    @suhaskshirsagar5202 4 ปีที่แล้ว +1

    Excellent explanation...it will be helpful for students from other branch also👌👌👌

  • @epicusfeury3443
    @epicusfeury3443 3 ปีที่แล้ว

    Thank you for this, really quick and simple, super appreciated

  • @pawanjakke7392
    @pawanjakke7392 4 ปีที่แล้ว +62

    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

    • @shashanksp9168
      @shashanksp9168 4 ปีที่แล้ว +2

      TQ bro

    • @erz_mafia
      @erz_mafia 4 ปีที่แล้ว +1

      hahaha .....i follow this trick too

    • @Siddharth-uo6zw
      @Siddharth-uo6zw 4 ปีที่แล้ว

      @@DineshThakur-hv1jz no it is correct

    • @lankasushma5105
      @lankasushma5105 4 ปีที่แล้ว +1

      Trick bagundhi boss tq

    • @pawanjakke7392
      @pawanjakke7392 4 ปีที่แล้ว

      @@lankasushma5105 welcome🤝

  • @chandanhegade3673
    @chandanhegade3673 3 ปีที่แล้ว +9

    Easy way to remember the compliment, ~n means -(n+1). Ex: ~6, output will -7. or ~18, output will be -19... :D

  • @piousringlearning
    @piousringlearning 5 ปีที่แล้ว +1

    Perfect Explanation. Thank you.

  • @gpraneetha
    @gpraneetha 3 ปีที่แล้ว +1

    Wonderful explanation . Got interest on coding after listening to your classes

  • @rajkumar-nx1me
    @rajkumar-nx1me 5 ปีที่แล้ว +3

    print("the way naveen sir teach is superb")
    print("thank you")

  • @maheshchavare9779
    @maheshchavare9779 3 ปีที่แล้ว +3

    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?

  • @golurohilla8542
    @golurohilla8542 4 ปีที่แล้ว

    ur style of doing bye is amazing

  • @prathameshandhare7169
    @prathameshandhare7169 3 ปีที่แล้ว +1

    Its just CRITICALLY FANTASTIC.

  • @hawnod4665
    @hawnod4665 4 ปีที่แล้ว +3

    print('thank you')

  • @IamAnKYy
    @IamAnKYy 3 ปีที่แล้ว +44

    10:18 "but we ignore zeros because they are zeroes"
    zeroes - "Am i a joke to you?" 😂

    • @ravi7979
      @ravi7979 3 ปีที่แล้ว +3

      Aryabhata wants to know your location

  • @INDIAN-kq6yo
    @INDIAN-kq6yo 4 ปีที่แล้ว +1

    vow. bitwise operation in a 12 min video!. awesome!

  • @pastryclub3705
    @pastryclub3705 4 ปีที่แล้ว

    Very good explanation Navin. Thank you!

  • @prateekkachoria301
    @prateekkachoria301 4 ปีที่แล้ว +3

    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

    • @kayaberk-
      @kayaberk- ปีที่แล้ว

      + same problem here

  • @thisismazhar
    @thisismazhar 5 ปีที่แล้ว +7

    sir, if binary format for -13 is 11110011, then what is the binary format of 243??? is it same?

    • @rgk1579
      @rgk1579 5 ปีที่แล้ว

      I too have this doubt

    • @pranavkongara4197
      @pranavkongara4197 5 ปีที่แล้ว +7

      @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.

    • @pranavkongara4197
      @pranavkongara4197 5 ปีที่แล้ว

      @@rgk1579 ^^

    • @PythonisLove
      @PythonisLove 5 ปีที่แล้ว

      243 is a 16-bit number

  • @harshavardhandsh5190
    @harshavardhandsh5190 5 ปีที่แล้ว

    Learning with you is really very interesting sir, one request Please upload the tutorials serial wise OR we have to search where the next is... Thanks a lot...

  • @muktam1558
    @muktam1558 2 ปีที่แล้ว

    Thank you so much Navin, earlier I was struggling with this , now I got the concept

  • @khadarsk9099
    @khadarsk9099 5 ปีที่แล้ว +17

    11110011 how can we tell this is -13 without compare this with result.
    and how to convert 11110011 into number (-13)?

    • @nagarajanrajan2460
      @nagarajanrajan2460 4 ปีที่แล้ว +8

      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

    • @devkumarjacks201
      @devkumarjacks201 4 ปีที่แล้ว

      Same here I don't understand that too...

    • @praveen1193
      @praveen1193 4 ปีที่แล้ว +1

      @@devkumarjacks201 go through most significant bit concept

    • @namankumarbharti625
      @namankumarbharti625 4 ปีที่แล้ว

      Did you get the answer?? @shaik

    • @oxsc
      @oxsc 4 ปีที่แล้ว

      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 :)

  • @Neerajkumar-mc7wk
    @Neerajkumar-mc7wk 5 ปีที่แล้ว +6

    sir binary format of 12 is 0b1100 then why 0000 at the start from where they came.

    • @tejbirsingh2491
      @tejbirsingh2491 5 ปีที่แล้ว

      Yes bro same doubt

    • @jayachandrareddy_g
      @jayachandrareddy_g 5 ปีที่แล้ว

      to convert it into 8 bit. he added 0000.

    • @niviten
      @niviten 5 ปีที่แล้ว

      the preceding zeros, 0b1100 == 0b00000.....000001100

    • @debabrataiam2019
      @debabrataiam2019 5 ปีที่แล้ว +1

      @@niviten why it's necessary to convert it to 8bit?

    • @arvindrathod1082
      @arvindrathod1082 5 ปีที่แล้ว +4

      @@debabrataiam2019 : integer data type storage size is 1byte =8bits. All these values in integer data type therefor we are converting them to 8 bits.

  • @sandeepch6011
    @sandeepch6011 4 ปีที่แล้ว

    Thank you very much sir, I am enjoying your class. Excellent explanation sir.

  • @shankargope2475
    @shankargope2475 10 หลายเดือนก่อน +1

    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❤