Python Closures | Understanding Python Closures | Why They Are Useful

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

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

  • @RakeshDas-fo8ps
    @RakeshDas-fo8ps ปีที่แล้ว

    Thanks for Video

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

    couldn't thank you enough how much this clears my doubt!

  • @shashishekhar----
    @shashishekhar---- 2 ปีที่แล้ว

    Thank you so much for this wonderful explaination.

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

    THANK YOU VERY MUCHHHHHHHHH

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

    good explanation

  • @mohamedalin.m.a613
    @mohamedalin.m.a613 3 ปีที่แล้ว

    Very super explanation

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

    The nth_power was an excellent example

  • @STUDENT-LEARNER-z4r
    @STUDENT-LEARNER-z4r ปีที่แล้ว

    nice

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

    Can u provide playlist of your video's. ?

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

      th-cam.com/play/PLS1QulWo1RIaT4b78LVVUPkRzVa8OdODG.html

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

      @@Rohitsingh2410 😉

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

    Can innerfunc and outterfunc vary in number of arguments

  • @md.robiulislam1592
    @md.robiulislam1592 2 ปีที่แล้ว +2

    You are explaining the closure function in python. But in the whole video, you never sound the "function as object". That's🥲 strange.

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

    Caution, simple stack example fails for lists that contain duplicate items.

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

    This doesn't explain enough. Because you can do the same pop function like this, without an inner function, most of these videos don't explain WHY we need closures:
    def pop(mlist):
    mlist.remove(len(mlist))

    return mlist
    mlist = [1, 2, 3, 4, 5]
    print(pop(mlist))
    print(pop(mlist))
    print(pop(mlist))

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

    Clear explanation. Thank you