lists

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

КОМЕНТАРІ • 29

  • @pythonnme6343
    @pythonnme6343 7 років тому +16

    These lectures are really good. Madhavan Sir, you are amazing.

  • @tech__drao6310
    @tech__drao6310 Рік тому +2

    Excellent explanations. Wish I did this course first. Shunned this course as an advanced course for a beginner in Python like me. 👍

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

    By far the best teaching, i have come across, clearing the fundamental

  • @RA-oo4lj
    @RA-oo4lj 5 років тому +3

    Simply the best teacher I have ever come across in CS.

  • @rjain3443
    @rjain3443 11 місяців тому

    Amazing lectures Prof. Madhavan !!! Thank you for this.

  • @Jaimin_Bariya
    @Jaimin_Bariya Місяць тому

    Jp here again [Comment number 29]
    Thank you, Sir, :)

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

    Excellent💯💯

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

    this id golden, he explained it so beautifully

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

    Good explanation

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

    really helpfull

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

    I did the same thing as him, created two lists1 and list2 with same elements. However, when I executed 'list1 is list2' system gave 'False'. Then I checked list1 and list2 values, but they were same. Why did it show False?

    • @Dream-op5th
      @Dream-op5th 2 роки тому +2

      is gives true only if they are pointing to same objects. if you had written list1 = [1,2,3,4] and then list2 = list1, then you can expect the output of list1 is list2 as true.

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

    22:37. Consider the following code,
    my_list = [1,2,3]
    new_list = my_list
    my_list = [4,5,6]
    If my_list and new_list point to the same data, why am I getting different outputs?

    • @YashPareek-zv9jg
      @YashPareek-zv9jg 2 місяці тому

      you are not pointing new list to my list as you are not using pointers. you made new list as my list and then changed my list so you will get different outputs

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

    I think both value pointed to same location when
    x=5
    y=x
    but when
    x=7
    x is bound to new value and y remain to previous bounded value

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

      That is not true. when you assign a variable which has a immutable value type to another variable, you are creating two separate instances of object. You can easily check this in pythontutor.com

    • @apoorvakhare4276
      @apoorvakhare4276 2 місяці тому

      I agree with this initially they are pointing to the same location because print(id(x)) and print(id(y)) gives the same result , which means they are pointing to the same value . After updating the value of x , x started pointing to other address and y is still pointing to the initial location.

  • @sahdevrai3368
    @sahdevrai3368 3 роки тому +3

    I think L[:]==L[0:len(L) +1] but not L[:]==L[0:len(L) ]

    • @praneshstark5604
      @praneshstark5604 3 роки тому +3

      No. It's not len(L)+1. It's len(L).
      Because for len() we don't count from 0, we start from 1

    • @Nick-tt9lh
      @Nick-tt9lh 3 роки тому

      Even your code will show the same result but the most efficient way to write the code is L[0:len(L)]

  • @pushkarc.athavale3789
    @pushkarc.athavale3789 5 років тому

    How do you clear the screen sir?

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

      In python scripts, the screen cannot be cleared. There is no command to do that.

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

      Command "cls" will clear the command prompt screen. Make sure you exit the python interpreter using the 'quit' or 'exit' command before typing "cls" as this command is not defined in python hence python will not recognize it.

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

    Ed who?

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

    Nice cheeks bro