OPERATORS PART 2 (BITWISE , LOGICAL , MEMBERSHIP , IDENTITY) - PYTHON PROGRAMMING

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 พ.ย. 2024

ความคิดเห็น • 68

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

    logical operators usage:
    a,b,c=10,5,15
    (a>b)and(ab)or(a>c) output: true
    not(a>b) output: false

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

    Thank you for your time to help us get to know the programmers. It’s great sir you are doing well.

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

    ~a , if a = 5, then answer is -6 not 250. because we need to do 1s and 2s complement on a and gets -6

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

    for ~a output is -6
    phython uses 2's complement for complenting opertion

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

      yes the output will be -6
      If a=5
      ~a = -a-1 =-6

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

    Your teach very useful for beginners

  • @SpecialeducationnotesB.Ed.
    @SpecialeducationnotesB.Ed. 3 ปีที่แล้ว

    thanku soo much sir best teacher till now on youtube

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

    Hello Sir, I am trying to learn python by watching your videos and really you are an excellent teacher. From starting I understood everything but got stuck when I reached the Binary OR operator explanation. I am from a non-technical background and not sure how those numbers are considered and how the decimal is considered as 7!!! It would be of great help if you could explain a bit about it sir. It's my humble request and it would be of great help, if you could refer me to the other videos where this was explained by you already. Thanks in advance sir🙂

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

      th-cam.com/play/PLLOxZwkBK52A2pxbcDs_Mntq0QHdS-IC8.html

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

      @@sundeepsaradhi Thank you very much sir 🙏🙏🙏. Found you as perfect mentor after lots of searches in TH-cam 🙏🙏🙏. Thanks again sir. Can you be connected via call as well sir? I needed some guidance from you 🙏🙏🙏

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

    Tq...Sir ur explanation is 👌👌👌

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

    👌👌👌👌
    Nice way to explain......

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

      hi
      thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.

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

    Thank you Sundeep!!! I am learning the video on python. I want to do exercises so i remember. where can i find exercises?

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

    Awesome sir

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

    Thanks Sir for such detailed explanation. Crystal clear !!

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

    Sir how we can say the result is 7 in Bitwise OR. And explain to others operators also sir.

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

    Good Explanation

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

    nice sir upload more videos plz

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

    or keyboard letter is | (pipe) not this ! (exclamator)

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

    Sir your explanation is very great

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

    Great👌👌👌👌👌👌

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

    Thank sir

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

    Sir,could u please do videos on c++ also...I follow all ur videos Sir, please

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

    82 videos. Are enough for learning python programming sir

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

    sir check (a) value

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

    How to write algorithm and code in file sir.. And where to use that arithmetical operators..

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

    could you please give me an example for membership operators

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

    sir, binary representation of variables yela vastai...?

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

    Sir... Logical OR is explained wrong .

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

    In left shift how we get 20

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

    in bitwise operators

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

    I want to learn python from basic

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

    ,a>=b is true sir.how it becomes false?

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

    Hi sir,
    When u did the bit wise OR
    5+3 should be 8 naa?
    How come it's 7.?
    Bcoz OR means addition

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

      OR means not addition

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

    sir, please clarify the a>>2 ?

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

      Hi Sir
      Left Shift (

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

    Sir right shift is wrong

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

    sir alignment doesnot working it prints the what the value we have written e.g print("Hello",">20") if we entered the result is Hello >20 what is the issue behind it please tell plz plz plz plz plz plz plz plz plz plz plz plz sir

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

      Instead of use print use format
      format("hello",">20")
      Pls check the comment I have clarified in the comment

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

      @@sundeepsaradhi yes sir its work thank you so much to clear my problem u are great
      you are the first teacher on you tube who clear problem within a day
      thank you sooooooooooooooo much sir
      thank you

  • @vivekkumar-hv5vk
    @vivekkumar-hv5vk 4 ปีที่แล้ว

    Sir yeh compliment operator wrong hai

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

    Sir this total notes I wnat ppt

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

    #COMPLEMENT
    a = 5
    print(~a)
    o/p
    -6,
    in your video o/p is 250,please clarify me Sir?

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

      Hi sir
      We can write binary representation of number 5 is
      0000 0101 = 5
      Now doing 1's compliment
      1111 1010 = 250
      Now we do binary representation for -6=
      0000 0110 (if there is - sign we do both 1's 2's compliment)
      0000 0110
      1111 1001 (1's compliment)
      +1 (2's compliment)
      1111 1010 = 250
      See the 5 and -6 it have same 250 decimal representation
      That's only in python program
      When you write Code
      a = 5
      print(~a)
      OUTPUT
      -6
      I Hope You Understand Concept Sir

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

    Sir at 6:49 how the value is 7 and in xor operator too how we got value 6 can anywone plz help me out dint understand 🙁

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

      7/2= 3 remainder 1
      3/2=1 remainder 1
      1/2= 0 remainder 1
      Now take the remainder from bottom 111 and he is representing all numbers with 2^7 that's is 128 so 00000111
      Now in XOR 1,1 & 0,0 is 0 everything else is 1, now the conversion gives a binary 6

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

      @@MojoTech tq very much 😊

  • @dearpierre8190
    @dearpierre8190 6 ปีที่แล้ว

    Nic

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

    Bit wise operators cannot understand.for 5 why 00000101 numbers are taken .please say

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

      It should be taken when u are performing right shift and left shift operations.
      8+4+2+1=15
      If u r taking the values above 15 then u should take 8 digit binary code not 4 digit.

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

      12 digit code
      128 64 32 16 8 4 2 1
      0. 0. 0. 0. 0.1 0 1
      So 4+1 is the answer 5
      8. 4. 2. 1
      1. 0. 0. 0. 1
      2. 0. 0. 1. 0
      3. 0. 0. 1. 1
      4. 0. 1. 0. 0
      5. 0. 1. 0. 1......4+1=5
      6. 0. 1. 1. 0....... 4+2=6
      .
      .
      .
      .repeated up to
      128+64+32+16+8+4+2+1=255

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

    Complement for 6 is wrong

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

    Sir Please give any example for membership operators

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

      In

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

      A=11
      B=23
      List=[11,2,3,55]
      If a in list :
      Print(" a is in list")
      Output= a is in list
      A=2
      B=[3,8,2]
      If a in B :
      Print("a is in b")

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

    hey sir , i need your help to to select best laptop for computer programming and other works related networking
    mac or windows?

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

      go to windows if you like to use crack version software

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

    hey sir , i need your help to to select best laptop for computer programming

    • @sg-ke3st
      @sg-ke3st 4 ปีที่แล้ว

      @Sagar Gupta i brought acer aspire 5 for it .. at 37k ryzen 5 SSD model .. from Amazon

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

    Hii sir

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

    When Logical opeartors are used, got Invalid syntax error

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

    Bitwise operators I can't understand sir

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

    Good Explanation