Assignment Operators in Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.ค. 2023
  • Python Programming: Assignment Operators in Python
    Topics discussed:
    1. Introduction to Assignment Operators.
    2. Assignment Operators in Python.
    Python Programming Playlist: • Python Programming
    Follow Neso Academy on Instagram: @nesoacademy (bit.ly/2XP63OE)
    Contribute: www.nesoacademy.org/donate
    Memberships: bit.ly/2U7YSPI
    Books: www.nesoacademy.org/recommend...
    Website ► www.nesoacademy.org/
    Forum ► forum.nesoacademy.org/
    Facebook ► goo.gl/Nt0PmB
    Twitter ► / nesoacademy
    Music:
    Axol x Alex Skrindo - You [NCS Release]
    #PythonByNeso #PythonProgramming #OperatorsInPython

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

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

    It should be noted that the operators tell the python interpreter to call a corresponding magic method on the object to the left of the operator passing the object to the right as an argument. The + operator utilises the __add__ method and the += operator utilises the __iadd__ method. 'a + b' is equivalent to 'a.__add__(b)' and 'a += b' is equivalent to 'a.__iadd__(b)'.
    You can create bespoke behaviours in your classes using these double underscore methods(or "dunder methods").

  • @vivekacharyavivekacharya6456
    @vivekacharyavivekacharya6456 11 หลายเดือนก่อน +3

    In decimal its 2 and in binary it is '0b10'

  • @moviesync3131
    @moviesync3131 7 หลายเดือนก่อน +1

    2:20 I don't know what sign is that. Is that supposed to be the [and] shortcut sign...?

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

    Tqqq so much sirr

  • @MayurMitra-i9i
    @MayurMitra-i9i หลายเดือนก่อน

    Answer = 2. Thanks for the video.

  • @ECEKOTESWARARAOM
    @ECEKOTESWARARAOM 10 หลายเดือนก่อน +3

    X=55(110111)
    Y=10(1010)
    By apply xor operator it X^=Y(111101)
    print (x) =61

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

    Thnx a lot

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

    answer : x = 2
    & thankyou for making video for us

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

    Sir i will request you to please upload the classes as soon as possible

  • @venkatraman_padmanaban
    @venkatraman_padmanaban 8 หลายเดือนก่อน +2

    Output value of x is 2

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

    please upload videos daily

  • @jingersatuh6322
    @jingersatuh6322 7 หลายเดือนก่อน +3

    Homework : 55 & 10
    = 0b0110111 & 0b00001010
    = 0b0000010
    = 2 (Decimal)

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

      How bro can you teach me

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

      @@crazystatus8249 he did little mistake while typing but answer is correct its 2

  • @mradulsonare2458
    @mradulsonare2458 5 หลายเดือนก่อน +3

    Answer is 2

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

    The decimal value is 2

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

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

    >>> x = 55
    >>> y = 10
    >>> x &= y
    >>> x

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

    Interested

  • @pmalik1975
    @pmalik1975 9 หลายเดือนก่อน +1

    Decimal value is 2

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

      How will come 2

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

      55 = 110111 and 10 = 1010, so 55 & 10 is 000010 or(10), and 10(2) in decimal is 2@@suryaprakashtumu8671

  • @joydeboraon6637
    @joydeboraon6637 13 วันที่ผ่านมา +1

    2

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

    output=2

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

    Answer(2)

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

    answer = 2

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

    65

  • @jagsank1k2
    @jagsank1k2 24 วันที่ผ่านมา

    answer is 2

  • @Monkey-nv3pj
    @Monkey-nv3pj ปีที่แล้ว

    1st like 1st view

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

    homework answer is 2

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

      But how, binary value of 55=110111 and 10=1010 so how we perform & operator in this one is 6 digit and second is 4 digit????!!

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

      In my notebook,
      After performing x&y answer is 110010 which is 50
      And computer answers is 2 why

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

      55 = 110111 and 10 = 1010, so 55 & 10 = 000010 or(10), and 10(2) in decimal is 2@@kumarp5954

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

    2

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

    2

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

    2

  • @HimanshuVerma-ig5tw
    @HimanshuVerma-ig5tw 9 หลายเดือนก่อน

    2

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

    2