#14 Python Tutorial for Beginners | Python BitWise Operators

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

КОМЕНТАРІ • 1,4 тис.

  • @farmerfomIndia
    @farmerfomIndia 6 років тому +449

    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 4 роки тому +13

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

    • @rajtiwari6645
      @rajtiwari6645 4 роки тому +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 роки тому +46

    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☺

  • @jokergaming3884
    @jokergaming3884 5 років тому +554

    print("nice teacher of python")

    • @vedclove
      @vedclove 4 роки тому +3

      loop

    • @technicprince5011
      @technicprince5011 4 роки тому +15

      the ans will be Navin Sir

    • @AI_CANISTER
      @AI_CANISTER 4 роки тому +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??

  • @easy_abhiyantriki
    @easy_abhiyantriki Рік тому +6

    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 🙄

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

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

  • @nehaaadarsh
    @nehaaadarsh 4 роки тому +147

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

    • @lack_of_awareness
      @lack_of_awareness 4 роки тому

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

    • @meenakshi.v7385
      @meenakshi.v7385 4 роки тому

      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

  • @Hrit
    @Hrit 4 роки тому +6

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

  • @nimitagarwal6352
    @nimitagarwal6352 4 роки тому +28

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

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

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

  • @vahidrezaarabpour
    @vahidrezaarabpour 4 роки тому +8

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

  • @Venu0916_2K
    @Venu0916_2K 2 роки тому +14

    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 Рік тому

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

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

      @@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 Рік тому

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

  • @gauravpandey1454
    @gauravpandey1454 5 років тому +4

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

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

  • @rbk.technology4747
    @rbk.technology4747 5 років тому +3

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

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

  • @varunjha7731
    @varunjha7731 6 років тому +7

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

  • @A9537-o1i
    @A9537-o1i Рік тому +3

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

  • @farhanaziz1177
    @farhanaziz1177 2 роки тому +4

    One of the best programming teachers on UA-cam

  • @arpitlakra4365
    @arpitlakra4365 3 роки тому +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. 👏👏👏👏👏

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

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

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

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

  • @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 роки тому +29

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

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

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

  • @DarkYuugen
    @DarkYuugen 4 роки тому +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.

  • @Jeity_
    @Jeity_ 5 років тому +7

    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

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

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

    • @OasisFinder
      @OasisFinder 4 роки тому +1

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

  • @Sreeyareddy-c8f
    @Sreeyareddy-c8f 2 дні тому

    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.

  • @subramaniamr5723
    @subramaniamr5723 5 років тому +20

    print ("best teacher")

  • @itsme-fv7wq
    @itsme-fv7wq 2 роки тому +1

    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 😀

  • @cnu4a2
    @cnu4a2 5 років тому +7

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

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

  • @IamRaeen
    @IamRaeen 6 років тому +34

    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.

  • @Bikash-Debnath
    @Bikash-Debnath 3 роки тому +1

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

  • @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 2 роки тому

      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 11 місяців тому

      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

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

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

  • @gladyouseen8160
    @gladyouseen8160 5 років тому +27

    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 4 роки тому

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

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

    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 😁

  • @navathesachin3782
    @navathesachin3782 3 роки тому +54

    To find complement, use below formula:
    ~a=-(a+1)
    Ex:
    a=12
    -(12+1)
    -13
    a=56
    -(56+1)
    -57

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

    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.

  • @64imma
    @64imma 2 роки тому +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.

  • @supersymmetry2517
    @supersymmetry2517 4 роки тому +2

    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

  • @chandanhegade3673
    @chandanhegade3673 4 роки тому +10

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

  • @shivaprasadmallikarjunaiah3751

    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

  • @anshtanwar1813
    @anshtanwar1813 5 років тому +85

    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

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

  • @GiovaniGalicia
    @GiovaniGalicia 5 років тому +3

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

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

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

  • @souadlalune9415
    @souadlalune9415 4 роки тому +11

    I am having so much fun, thank you.

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

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

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

  • @astwo26
    @astwo26 Рік тому +1

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

  • @rajpanday1911
    @rajpanday1911 4 роки тому +12

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

    • @hemanthrajkumar3120
      @hemanthrajkumar3120 4 місяці тому

      Even I'm getting the same doubt now

    • @girishbabucj4180
      @girishbabucj4180 3 місяці тому

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

  • @vishalnasre1251
    @vishalnasre1251 4 місяці тому

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

  • @ogolasaura1805
    @ogolasaura1805 3 роки тому +6

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

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

    No way! It's like magic, I'm 10 years old and I love your videos alot! Navin sir rocks!

  • @satishraghav320
    @satishraghav320 5 років тому +12

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

  • @kaushikdr
    @kaushikdr 4 роки тому +2

    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.

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

  • @archyoloo4046
    @archyoloo4046 9 місяців тому +1

    Sir Your a gift from Heaven!

  • @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 3 роки тому +1

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

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

      @@omkarjsuvarna Got it 👍😊

  • @yugandharsurya
    @yugandharsurya 5 років тому +1

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

  • @yashm05
    @yashm05 5 років тому +3

    teaching skills 💯
    you got this subscriber sir 😊

  • @valleykid6577
    @valleykid6577 4 роки тому +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 =)

  • @just_a_living_being
    @just_a_living_being 6 років тому +5

    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.

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

  • @sachinkoli8775
    @sachinkoli8775 6 років тому +4

    I am enjoying this series, nice explanations.
    Thank you

  • @Always_Happy_22-02
    @Always_Happy_22-02 Рік тому +1

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

  • @khadarsk9099
    @khadarsk9099 6 років тому +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 :)

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

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

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

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

    Best resource to learn data structures and algorithms using python

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

  • @Chandu-ce7vn
    @Chandu-ce7vn 5 місяців тому

    no second thought of searching for other python tutorials after watching this ,fabulous explaination👏👏

  • @keonook
    @keonook 4 роки тому +3

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

  • @Yashurajuu
    @Yashurajuu 5 років тому +2

    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😊😍

  • @IamAnKYy
    @IamAnKYy 4 роки тому +45

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

    • @ravi7979
      @ravi7979 4 роки тому +3

      Aryabhata wants to know your location

  • @gpraneetha
    @gpraneetha 4 роки тому +1

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

  • @collinsaharley-bright4399
    @collinsaharley-bright4399 4 роки тому +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

  • @dipankargupta3365
    @dipankargupta3365 4 роки тому +2

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

  • @rajkumar-nx1me
    @rajkumar-nx1me 5 років тому +3

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

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

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

  • @thisismazhar
    @thisismazhar 6 років тому +7

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

    • @rgk1579
      @rgk1579 6 років тому

      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

  • @Durga_Naveen
    @Durga_Naveen 5 місяців тому +1

    In 2024 also the best python series❤
    Navin the Creator 😊

  • @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- 2 роки тому

      + same problem here

  • @shankargope2475
    @shankargope2475 Рік тому +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❤

  • @rv2007
    @rv2007 6 років тому +4

    Thank u sir
    For this treasure video..

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

    learning in 22 thanks you alot sir this course is just full with energy.

  • @Neerajkumar-mc7wk
    @Neerajkumar-mc7wk 6 років тому +6

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

    • @tejbirsingh2491
      @tejbirsingh2491 6 років тому

      Yes bro same doubt

    • @jayachandrareddy_g
      @jayachandrareddy_g 6 років тому

      to convert it into 8 bit. he added 0000.

    • @niviten
      @niviten 6 років тому

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

    • @debabrataiam2019
      @debabrataiam2019 6 років тому +1

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

    • @arvindrathod1082
      @arvindrathod1082 6 років тому +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.

  • @danielmehari4831
    @danielmehari4831 5 років тому +1

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

  • @ashwanigupta3419
    @ashwanigupta3419 5 років тому +10

    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?

    • @kulasekhar1598
      @kulasekhar1598 5 років тому

      Same dought bro

    • @nehairinirm7871
      @nehairinirm7871 4 роки тому

      Same confusion.. 🙄

    • @dasarihimabindu8075
      @dasarihimabindu8075 4 роки тому

      That is 2's complement is equal to the 13 's complement that we are saying complement of 12 is equal to -13

    • @Ahmed_Dorra
      @Ahmed_Dorra 4 роки тому

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

    • @theduffrichie2050
      @theduffrichie2050 4 роки тому +2

      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. :(

  • @datascience6718
    @datascience6718 4 роки тому +1

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

  • @shohabmohammed2174
    @shohabmohammed2174 4 роки тому +4

    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

    • @mahinbari6307
      @mahinbari6307 4 роки тому +11

      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
      @shantanugupta4932 4 роки тому +1

      @@mahinbari6307 can you explain me how you find bin 45 = 0000101101

    • @miteshpadiya1678
      @miteshpadiya1678 4 роки тому

      @@mahinbari6307 tnx brother

    • @mahinbari6307
      @mahinbari6307 4 роки тому +1

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

    • @jai4uuuu
      @jai4uuuu 4 роки тому

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

  • @keyurpatel5248
    @keyurpatel5248 5 років тому +2

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

  • @SaiKiran-zu2fe
    @SaiKiran-zu2fe 5 років тому +3

    Your channel name "Telusko" mean. To be known in "Telugu"❤️

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

    Please type....print(' Navin sir is the best teacher in the world') .. 👍👍🥰🥰🙂.. Big fan..