Python Closures | Understanding Python Closures | Why They Are Useful

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

КОМЕНТАРІ • 18

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

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

  • @equu497
    @equu497 Рік тому

    The nth_power was an excellent example

  • @RakeshDas-fo8ps
    @RakeshDas-fo8ps 2 роки тому

    Thanks for Video

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

    THANK YOU VERY MUCHHHHHHHHH

  • @shivamkhandekar2025
    @shivamkhandekar2025 3 роки тому +2

    good explanation

  • @KrishnaManohar8021
    @KrishnaManohar8021 4 роки тому +3

    Can u provide playlist of your video's. ?

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

    Clear explanation. Thank you

  • @mohamedalin.m.a613
    @mohamedalin.m.a613 3 роки тому

    Very super explanation

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

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

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

    Can innerfunc and outterfunc vary in number of arguments

  • @md.robiulislam1592
    @md.robiulislam1592 3 роки тому +2

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

  • @STUDENT-LEARNER-z4r
    @STUDENT-LEARNER-z4r Рік тому

    nice

  • @KK_கேகே
    @KK_கேகே 2 роки тому

    @ 10.34 where is the base value derived from

  • @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))

  • @shashishekhar----
    @shashishekhar---- 2 роки тому

    Thank you so much for this wonderful explaination.