Video není dostupné.
Omlouváme se.
Python Tutorials - Closure | Nested Functions
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
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...
Thank you :)
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 ||
Thank you :)
@@AmulsAcademy Hello Amulya! wanted to have a piece of advice, is there any way you could guide? Like email? Something
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 :)
a clean explanation with a beautiful voice
Wow...superb amulya....i love the content
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"❤❤
best tutorial serires i have ever met........superb
Glad you liked it :)
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.
Thanks a lot.
Thank you :)
Thx for the explanation!
thank you so much your explanation
You are teaching as sweet as your voice❤
Crystal Clear. Awesome
Thank you :)
your teaching is really good mam
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?
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 :)
Very impressive 👍
Hi mam.. Y you have not used nonlocal key for x inside inner function?
OMG This was so helpful!! Thanksssss
My Pleasure :)
Thank You! :)
Thank you for the explanation.
Pleasure :)
Wonderful Amulya !!!
Thank you 😊
You saved me🙏🙏.. thanks
Glad to hear that :)
Is built in are keywords in python? right
Thank you amul
Welcome :)
teaching good👍👍
very nicely explained, thanks
My Pleasure :)
Nice explanation 🙏👌
❤ for your motivating voice😃🙏🤗
Thank you :)
thank u mam.you are the best
Most welcome 😊
why do we call the inner function in the outer function scope ??
Great Information
Thank you 😊
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"
Thank you :)
How inner function is call when we are calling it?
Please could you explain a little further what you mean by avoiding global variables and data hiding? Possibly with some examples? Thank you!
Nice , thank you~
Welcome :)
Mam yu are the best ❣❣❣
Thank you 😊
Wonderful explaining madam....
Thank you :)
Thanks 👍
Welcome 👍
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 ????
Awesome
Thank you :)
Mam how many years of experience do you have in python.
Excellent
Thank you so much 😀
Thank you lot mam
Pleasure :)
what's the use of data hiding ?
Where are you from? Really excellent teaching. Where is your institute mam? Do a video about yourself please.
Thank you :)
I am from Karnataka
I don't have any institute, i am a full time youtuber
:)
It is like pointer
Hello mam. Plzz cover all the modules toturial of the python plzz mam...
Ok :)
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.
at 8:00 comment need to be corrected as function returning value NOT------>" value returning function"
So here outer function exist in memory , inner function don't exist in memory?
How data hiding is implemented here
Can you discriminate the difference between print and return statement please!🙋♂️
print is output function to display the output.
return statement will return the result to the main function{where it is called}
:)
At 6.51
Where are you from 😊😊
nice voice
Thank you :)
Are u a girl or a kid?🤔
Extraa accent dikhane ka need nhi h di.. normal accent se bhi smjh aata hi sblogo ko
I didn’t do it intentionally 😊
@@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