Video není dostupné.
Omlouváme se.

Python Tutorials - Closure | Nested Functions

Sdílet
Vložit
  • čas přidán 6. 01. 2019
  • In this Python programming video tutorial we will learn about closures in detail.
    A Closure is a function object that remembers values in enclosing scopes even if they are not present in memory.
    In this tutorial we explained you about closures with example.
    Namespace and Variable Scope:
    • Python Tutorials - Nam...
    LEGB rule:
    • Python Tutorials - LEG...
    #PythonProgramming #Decorators
    For more free tutorials on computer programming
    / amulsacademy
    / amulsacademy

Komentáře • 86

  • @sivaprasad6739
    @sivaprasad6739 Před 5 lety +19

    When i have adds between your class, i don't skip those adds, because it was your income, it's honor to watch adds for your great teaching, thanks for sharing your kind information...

  • @somnathpatnaik2277
    @somnathpatnaik2277 Před 4 lety +9

    I have gone through many videos of lectures and i feel you are a passionate teacher, others are just good at coding but not explaining, you explain things very well. Thank you for the hard work ||

    • @AmulsAcademy
      @AmulsAcademy  Před 4 lety +1

      Thank you :)

    • @somnathpatnaik2277
      @somnathpatnaik2277 Před 4 lety

      @@AmulsAcademy Hello Amulya! wanted to have a piece of advice, is there any way you could guide? Like email? Something

  • @datatalkshassan
    @datatalkshassan Před 5 lety

    Oh, and also to mention, brilliantantly explained all these concepts, subscribing to your channel for sure.
    I am quite new to Python and hence all these concepts are new to me, but I believe that I understood these here the most compared to what I studied from other websites online. Thank you :)

  • @ganeshnunna1387
    @ganeshnunna1387 Před rokem

    a clean explanation with a beautiful voice

  • @PervertedSinner
    @PervertedSinner Před 2 lety

    Wow...superb amulya....i love the content

  • @user-fg1pq7jd5e
    @user-fg1pq7jd5e Před 9 měsíci

    I came here to learn but after listening this melodious Voice and my ears my ears want to listen this for my entire life to "Real Truth"❤❤

  • @induwarasandeepa4441
    @induwarasandeepa4441 Před 4 lety +5

    best tutorial serires i have ever met........superb

  • @stevekykwong
    @stevekykwong Před 5 lety +1

    Very good explanation. I really wanted to throw my iPad away when I read ebooks about closure/decorator but your explanations on with or without () and closure is second to no one.

  • @hermesmercuriustrismegistu4841

    Thx for the explanation!

  • @Rikki-xj7gv
    @Rikki-xj7gv Před 3 měsíci

    thank you so much your explanation

  • @officialveerandvijay
    @officialveerandvijay Před rokem +1

    You are teaching as sweet as your voice❤

  • @mohammadkaif8143
    @mohammadkaif8143 Před 5 lety +2

    Crystal Clear. Awesome

  • @SanthoshKumar-mo6dg
    @SanthoshKumar-mo6dg Před 4 lety

    your teaching is really good mam

  • @datatalkshassan
    @datatalkshassan Před 5 lety

    is it important that the nested function must refer to a value in enclosed function?
    Can't it be just another function which will perform its functionality and without depending upon enclosing function's object(s)?
    Like,
    def f1():
    x = 5
    def f2():
    y = 5
    print(y)
    return f2
    a = f1()
    a()
    - I ran this program and it worked fine. But it doesn't fulfill that 2nd condition, so such a program wouldnt be considered as closure?

  • @787ankur
    @787ankur Před 4 lety

    In the criteria for closure you mentioned one critera is that nested function must refer names in enclosing scope. However if we had defined msg = ''hello'' inside nested function this would have worked. Please advise on this. Thank you :)

  • @TechKnowledgewithAmit
    @TechKnowledgewithAmit Před 2 lety

    Very impressive 👍

  • @meenadalvi9743
    @meenadalvi9743 Před 3 lety

    Hi mam.. Y you have not used nonlocal key for x inside inner function?

  • @hearanwon7290
    @hearanwon7290 Před 5 lety +2

    OMG This was so helpful!! Thanksssss

  • @satyajeetkumar3476
    @satyajeetkumar3476 Před 2 lety

    Thank You! :)

  • @vikasray4837
    @vikasray4837 Před 4 lety +1

    Thank you for the explanation.

  • @meralmaradia4774
    @meralmaradia4774 Před 3 lety +1

    Wonderful Amulya !!!

  • @soulvocals3474
    @soulvocals3474 Před 3 lety +1

    You saved me🙏🙏.. thanks

  • @lokeshragukumar241
    @lokeshragukumar241 Před 4 lety

    Is built in are keywords in python? right

  • @MagicianWithMachine
    @MagicianWithMachine Před 3 lety +1

    Thank you amul

  • @srikarveeravatnam3267

    teaching good👍👍

  • @satyajitdas2780
    @satyajitdas2780 Před 5 lety +1

    very nicely explained, thanks

  • @singisbling2500
    @singisbling2500 Před 4 lety +1

    Nice explanation 🙏👌
    ❤ for your motivating voice😃🙏🤗

  • @prabhapro3663
    @prabhapro3663 Před 4 lety +1

    thank u mam.you are the best

  • @adewaleashogbon9161
    @adewaleashogbon9161 Před rokem

    why do we call the inner function in the outer function scope ??

  • @maheshvangala8472
    @maheshvangala8472 Před 3 lety +1

    Great Information

  • @yogeshkumarshankariya642
    @yogeshkumarshankariya642 Před 4 lety +2

    Thank you very much, ma'am. you should be a university professor or university professors must learn from you regarding "how can they teach students"

  • @entirebentirec3296
    @entirebentirec3296 Před 4 lety

    How inner function is call when we are calling it?

  • @ShawCode
    @ShawCode Před 4 lety

    Please could you explain a little further what you mean by avoiding global variables and data hiding? Possibly with some examples? Thank you!

  • @LOL-gd9gd
    @LOL-gd9gd Před 5 lety +1

    Nice , thank you~

  • @suryanshmishra8553
    @suryanshmishra8553 Před 3 lety +2

    Mam yu are the best ❣❣❣

  • @sivasurya4149
    @sivasurya4149 Před 4 lety +1

    Wonderful explaining madam....

  • @darshankachhadiya8014
    @darshankachhadiya8014 Před 3 lety +1

    Thanks 👍

  • @abhilashsindhe9833
    @abhilashsindhe9833 Před 4 lety

    Hi madam!!!! Simply Superb !!!! I want to do python course in your academy class room training and i want some clarification about python. how can i contact you ????

  • @sidnayak4395
    @sidnayak4395 Před 3 lety +1

    Awesome

  • @mohamadehtheshams2527
    @mohamadehtheshams2527 Před 4 lety

    Mam how many years of experience do you have in python.

  • @maaaaaass
    @maaaaaass Před 4 lety +1

    Excellent

  • @rgowtham9445
    @rgowtham9445 Před 4 lety +1

    Thank you lot mam

  • @srikarveeravatnam3267

    what's the use of data hiding ?

  • @saisunilharsha
    @saisunilharsha Před 5 lety +1

    Where are you from? Really excellent teaching. Where is your institute mam? Do a video about yourself please.

    • @AmulsAcademy
      @AmulsAcademy  Před 5 lety

      Thank you :)
      I am from Karnataka
      I don't have any institute, i am a full time youtuber
      :)

  • @Saurabhkumar-ps5zp
    @Saurabhkumar-ps5zp Před 4 lety +1

    It is like pointer

  • @AashishKumar-op2dm
    @AashishKumar-op2dm Před 5 lety +3

    Hello mam. Plzz cover all the modules toturial of the python plzz mam...

  • @rahulranjan8682
    @rahulranjan8682 Před 2 lety

    it is not necessary to refer to the enclosing variable nor does it remembers the value in closure but executes the nested function when it is called by a new name.

  • @thecodingboat9505
    @thecodingboat9505 Před rokem

    at 8:00 comment need to be corrected as function returning value NOT------>" value returning function"

  • @harshitgupta7073
    @harshitgupta7073 Před 2 lety

    So here outer function exist in memory , inner function don't exist in memory?

  • @maheshvangala8472
    @maheshvangala8472 Před 3 lety

    How data hiding is implemented here

  • @singisbling2500
    @singisbling2500 Před 4 lety +2

    Can you discriminate the difference between print and return statement please!🙋‍♂️

    • @AmulsAcademy
      @AmulsAcademy  Před 4 lety +3

      print is output function to display the output.
      return statement will return the result to the main function{where it is called}
      :)

  • @kushaldas8496
    @kushaldas8496 Před 4 lety

    At 6.51

  • @Insidesciencetelugu
    @Insidesciencetelugu Před 10 měsíci

    Where are you from 😊😊

  • @sadanavenki1059
    @sadanavenki1059 Před 3 lety +1

    nice voice

  • @Luffy-hi6xw
    @Luffy-hi6xw Před 4 lety +3

    Are u a girl or a kid?🤔

  • @AshutoshKumar-eo9km
    @AshutoshKumar-eo9km Před 3 lety +1

    Extraa accent dikhane ka need nhi h di.. normal accent se bhi smjh aata hi sblogo ko

    • @AmulsAcademy
      @AmulsAcademy  Před 3 lety

      I didn’t do it intentionally 😊

    • @AshutoshKumar-eo9km
      @AshutoshKumar-eo9km Před 3 lety

      @@AmulsAcademy sorry.. mood kharab tha and smjhna chah rha tha ye topic to accent tmhra kafi over laga.. to Likh diya
      .
      .
      Waise sahi me kafi over act sa laga