Bitwise Operators in Python - Tutorial & Application Fields

Поділитися
Вставка
  • Опубліковано 30 лис 2024

КОМЕНТАРІ • 46

  • @gambichiang2012
    @gambichiang2012 8 місяців тому +2

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

  • @calitts4708
    @calitts4708 3 роки тому +14

    Hey! Just realize you reached 100k! Congrats!

  • @thomasgoodwin2648
    @thomasgoodwin2648 3 роки тому +12

    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.

    • @PorkBoy69
      @PorkBoy69 8 місяців тому +1

      XOR is used in a similar manner in some versions of RAID. It can detect corrupted data and infer what it is to recover it

  • @kenny-kvibe
    @kenny-kvibe 3 роки тому +9

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

  • @vladimirtayzhev4211
    @vladimirtayzhev4211 2 роки тому +2

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

  • @jim2376
    @jim2376 6 місяців тому

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

  • @_base_2
    @_base_2 Рік тому

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

  • @insho.
    @insho. 10 місяців тому

    quick, precise. thanks

  • @trebelojaques458
    @trebelojaques458 3 роки тому

    Where datt Silver play button be ❤️❤️
    Congratulations!

  • @achiyederi3622
    @achiyederi3622 3 роки тому

    Just learned it this weekend 😃.

  • @aditya_asundi
    @aditya_asundi 3 роки тому +1

    Congrats on 100k!!

  • @MajonezaEU
    @MajonezaEU 10 місяців тому

    thy man you saved my life

  • @rajchakravarthy1132
    @rajchakravarthy1132 2 роки тому

    Really a great explanation! Thank you.

  • @johnyprigioni859
    @johnyprigioni859 Рік тому

    Super helpful, ty so much!

  • @someoneoutthere3586
    @someoneoutthere3586 Рік тому

    Thanks a lot! This is really helpful.

  • @Sam_A2
    @Sam_A2 3 роки тому

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

  • @devonhurd7013
    @devonhurd7013 Рік тому

    dude is on gear big time

  • @sc0urge561
    @sc0urge561 3 роки тому

    Congrats to the 100k subs bro

  • @bhavyamverma70
    @bhavyamverma70 3 роки тому +2

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

    • @NeuralNine
      @NeuralNine  3 роки тому +1

      One dark

    • @bhavyamverma70
      @bhavyamverma70 3 роки тому

      @@NeuralNine thankyou bro, I love your videos , direct at point , good explanation.

  • @JLSXMK8
    @JLSXMK8 3 роки тому

    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!

  • @minegun7248
    @minegun7248 3 роки тому

    Congrats on 100k!

  • @sirojiddinyakubov
    @sirojiddinyakubov 2 роки тому +1

    very good video

  • @josemanz
    @josemanz Рік тому

    Thanks a lot.

  • @anonlegion9096
    @anonlegion9096 3 роки тому

    you're my hero Flori!

  • @sarvarjuraev1376
    @sarvarjuraev1376 5 місяців тому

    Thanks a lot

  • @JLSXMK8
    @JLSXMK8 3 роки тому

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

  • @dewe1144
    @dewe1144 3 роки тому

    congrats for 100k

  • @idabomofavour286
    @idabomofavour286 Рік тому

    thanks man

  • @ethan7930
    @ethan7930 3 роки тому

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

    • @mohsenhaddadi1117
      @mohsenhaddadi1117 3 роки тому +1

      I test it after watching this video. The speed is the same.
      For boosting speed you should use cython.

  • @Tom-dq7tl
    @Tom-dq7tl Рік тому

    thanks!

  • @nimanazari6850
    @nimanazari6850 2 роки тому

    thanks a lot, it was amazing 👏❤

  • @shikharadhikari
    @shikharadhikari 3 роки тому

    GG 100k🔥❤️

  • @rtr195807
    @rtr195807 3 роки тому

    Danks again.

  • @yusiferzendric1489
    @yusiferzendric1489 3 роки тому

    Congratulations

  • @zeynepyarensargecili5623
    @zeynepyarensargecili5623 Рік тому

    thank youu

  • @ChristopherBruns-o7o
    @ChristopherBruns-o7o 3 місяці тому

    I don't how he is deciding for 2 & 1.

  • @eepikki
    @eepikki 3 роки тому

    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?

  • @alien_X1
    @alien_X1 3 роки тому

    Pls bring on obsfucation in python plss

  • @minegun7248
    @minegun7248 3 роки тому

    100 more

  • @DeathRebel369
    @DeathRebel369 Рік тому

    Bruh

  • @minegun7248
    @minegun7248 3 роки тому

    Only 400 more brother