Shallow and Deep Copy Python Programming Tutorial

In python you can't simply use the = to copy something from one variable/object to another variable/object. To truly copy something you need to make use of the shallow copy or deep copy, this python tutorial shows you why.

Пікірлер: 96

  • @alexchang435
    @alexchang4355 жыл бұрын

    Very clear and concise. Just enough information and examples to get your point across, but not too much information can clutter and confuse understanding. Thank you.

  • @srik86
    @srik862 жыл бұрын

    I don’t understand reason behind having shallow copy as a function. It’s neither completely a copy nor completely a reference. Is it there just to confuse people? Why only child objects of a nested list are referenced ? What’s the idea behind this

  • @jyotiprakashdas9882
    @jyotiprakashdas98825 жыл бұрын

    This is what I was searching for a long time. clear and on point explanation . Thanks and keep going.

  • @nischaysingh
    @nischaysingh Жыл бұрын

    To the point video. Now a days, even for a 2 min video creators consume one minute saying subscribe to my youtube channel 🤣

  • @Alphredis
    @Alphredis2 жыл бұрын

    Struggeling with Python for weeks. You just solved all my problems

  • @taihatranduc8613
    @taihatranduc8613 Жыл бұрын

    found the bug after hours

  • @JasonRobards2
    @JasonRobards2 Жыл бұрын

    When would you use a shallow copy over a deep copy? In other words, what is the use of this whole distinction?

  • @loggitdot
    @loggitdot4 жыл бұрын

    I've been stuck on this for the past day. Your video has cleared this up perfectly. 7/7 would watch again.

  • @no_life_wth_leafras949
    @no_life_wth_leafras9492 жыл бұрын

    finaly, what's the differencec between x = x and x = copy.copy(x) ?

  • @Andres-Estrella
    @Andres-Estrella Жыл бұрын

    so if there are no nested lists a shallow and a deep copy accomplish the same result?

  • @liamhan8145
    @liamhan81452 жыл бұрын

    Great video but there's one thing that wasn't clearly explained and reading through the comments, I think others were a little confused by this.

  • @gauravnikalje802
    @gauravnikalje8022 жыл бұрын

    Bro you explained so well in a very short time. Saved myself a lot of time. Thanks.

  • @taiwoadebisi9315
    @taiwoadebisi9315 Жыл бұрын

    Saw other videos on the same topic that went from 12 minutes to 15 minutes. Amazing how you summarize it in less than 4. Thank you.

  • @adarshsasidharan254
    @adarshsasidharan2543 жыл бұрын

    I wasted a lot of time understanding this, now I finally found this video. Thanks

  • @blaze9558
    @blaze9558 Жыл бұрын

    Oh god that was awesome.. You legit explained so much , so clearly in just few minutes.. Hats off man

  • @cruepprich
    @cruepprich5 жыл бұрын

    Short and sweet! Thanks!

  • @kiffbeatz
    @kiffbeatz Жыл бұрын

    Brilliant. Short and concise. Thank you.

  • @abdullahassamialnoor2779
    @abdullahassamialnoor2779

    Concise and helpful. Kudos!

  • @baoyandong2848
    @baoyandong28484 жыл бұрын

    the voice is really clean haha so I liked the video 3 s into it. The content is concise.

  • @srenjensen2836
    @srenjensen2836 Жыл бұрын

    Clear and concise. Great video