Literally I am following you since last week and now everything is getting cleared because whatever you told, you give real life examples in a layman language. So heartily thanks and keep making videos for flask , Django and in cloud side
How much long data this Closure function can hold, when decor function called it was having addition function / object address Aur ye nested function ka address return Kiya, so decor ka namespace ya function stack frame for destroyed, but when inner function called from somewhere it got address of addition function, From where did it get, and how much memory or bytes of data that holds what is the limit, as here these are small examples, but projects it can be huge function..
Boss Thank you very Much because i search lot of videos but i dint understand from there but after seeing this video all concepts are clear sir u have beginners python videos from scratch so i will see i will understand more better for this Big thank You 😍😍😍😍🙏🙏🙏🙏🙏 so i am susbscribing ur channel
because reassignment happened here. at line 12, i have assigned a new value to printer variable. Now, printer is identifier only for that new value and not the old function.
very nice explanation, but in case I write print(printer()) , in line number 13, I get "None" along with 3 times welcome in output. Could you please explain. Thanks for the upload!!!
My advice is to learn techs/programming languages first which you are going to use in your project. Some students directly starts building project and they don't have basic knowledge. If they get any error, it becomes very difficult for them to understand what's happening.
@@Codeyug Thank you for replying sir.. I want to grow in python and i think i m in learning process too.. completed my course from ur channel as well as from various courses.. but now want to test whether i am ready to make something through that knowledge or not.. so i need ur help. It will be my pleasurer to have ur guidance.
@code-yug you are using same function names and variables names . so its confusiong please use different names like below def abc(x): def mno(): result=x v2=float(input('Enter a number:')) result=result+v2 return result return mno def addition(): num1=float(input('Enter first number:')) num2=float(input('Enter second number:')) result=num1+num2 return result addition=abc(x) addition()----------------------its also not giving answer please suggest me
def decor(addition): def inner(): result=addition v2=float(input('Enter a number:')) result=result+v2 return result return inner def addition(): num1=float(input('Enter first number:')) num2=float(input('Enter second number:')) result=num1+num2 return result addition=decor(addition) print(addition()) ------------------------what is wrong here i am not getting answer. Anyone please suggest
@@Codeyug got it def abc(x): def mno(): result=x() v2=float(input('Enter Third number:')) result=result+v2 return result return mno def addition(): num1=float(input('Enter first number:')) num2=float(input('Enter second number:')) result=num1+num2 return result addition=abc(addition) print(addition())
Master in Python :- th-cam.com/play/PLI4OVrCFuY543naNBsCaRLrLSxI7MUOzZ.html
thanks, first time I understood after watching so many videos. keepitup.
Thanks!
Sir me itna khush nhu aap ki videos dekha kar aap ka padhe na ka tarika oo God Dil ko chhu liya ap ne sir
Perfectly explained. Thanks bro, i have gone through many videos but not getting the actual concept but the way you explained is just perfect.
Keep learning..
Literally I am following you since last week and now everything is getting cleared because whatever you told, you give real life examples in a layman language. So heartily thanks and keep making videos for flask , Django and in cloud side
Glad to hear that
best channel for learning python.. thanks alot
You are most welcome
Amazing clearity in explanation
best video on decorators
Well explained brooooooooooo please please continue don't stop no one is teaching like you
Loved this explanation
U are just osm to explain the concepts...
Thanks..please check playlists
How much long data this Closure function can hold, when decor function called it was having addition function / object address
Aur ye nested function ka address return Kiya, so decor ka namespace ya function stack frame for destroyed, but when inner function called from somewhere it got address of addition function,
From where did it get, and how much memory or bytes of data that holds what is the limit, as here these are small examples, but projects it can be huge function..
I will come to you on this.
Boss Thank you very Much because i search lot of videos but i dint understand from there but after seeing this video all concepts are clear
sir u have beginners python videos from scratch so i will see i will understand more better
for this Big thank You 😍😍😍😍🙏🙏🙏🙏🙏
so i am susbscribing ur channel
Thanks and please do share
Thank you
I have a question?
Is it compulsory to use nested function inside decorator function?
If it isn't then please explain this with an example.
It is necessary
Great explanation 👍👌👌
Thank you nad please check courses in playlist section
Sir i have one more question
At 7:37 when u call alias printer() then why python interpretor is not get confused with the same name printer function.
because reassignment happened here. at line 12, i have assigned a new value to printer variable. Now, printer is identifier only for that new value and not the old function.
@@Codeyug thanku
Here font size is correct
Good explanation
Keep going.. 😃
You are amazing man
Please share my channel with friends!
very nice explanation, but in case I write print(printer()) , in line number 13, I get "None" along with 3 times welcome in output. Could you please explain. Thanks for the upload!!!
Superb explanation
Thank you 🙂
number one video
Thanks
@13:43 min why iner function call return to decor logically not understand..... please explain..
Thanks sir ...nice teaching 👌
Thanks... Oop series going on.. Have a look at playlist
I want to learn to build projects with my own.. ca u guid plz
My advice is to learn techs/programming languages first which you are going to use in your project. Some students directly starts building project and they don't have basic knowledge. If they get any error, it becomes very difficult for them to understand what's happening.
@@Codeyug Thank you for replying sir.. I want to grow in python and i think i m in learning process too.. completed my course from ur channel as well as from various courses.. but now want to test whether i am ready to make something through that knowledge or not.. so i need ur help. It will be my pleasurer to have ur guidance.
Lots of love bhai maza a gaya
Thanks ❤ & I have created a small playlist on decorator.. Please check
you are making complicated and confusing code examples. please don't make confusion. great effort from you. nice playlist.
Esse simple examples aapko kahi nhi milega. Addition ke example me kya complex and confusing hai ?
Bro this is not confusing actually it's quite easy if you go to other channels there it becomes difficult to understand.
You will be number one soon.
@@raveena.sharma Thank you so much raveena..keep going and commenting❤️
nice teaching sir
Thank you vaibhav... Keep going.. 👍👍
Sirji your explanation is easy
i wrote same program of 2 number it shows 'NoneType' object is not callable.
How do i fix this?
Program send kro muze on Instagram.. Link about me milega
@code-yug you are using same function names and variables names . so its confusiong please use different names like below
def abc(x):
def mno():
result=x
v2=float(input('Enter a number:'))
result=result+v2
return result
return mno
def addition():
num1=float(input('Enter first number:'))
num2=float(input('Enter second number:'))
result=num1+num2
return result
addition=abc(x)
addition()----------------------its also not giving answer please suggest me
abc(x)? You should pass addition in abc
Sir staticMethod batayena thoda confusion ho rha
Please check my oop playlist.. Everything is covered. You can also search 'staticmethod in python codeyug'.
@@Codeyug thank you sir
Sir plz teach python for beginners live classes
Playlist available hai..Live krunga TH-cam pe.. But abhi nahi
@@Codeyug ok sir
def decor(addition):
def inner():
result=addition
v2=float(input('Enter a number:'))
result=result+v2
return result
return inner
def addition():
num1=float(input('Enter first number:'))
num2=float(input('Enter second number:'))
result=num1+num2
return result
addition=decor(addition)
print(addition()) ------------------------what is wrong here i am not getting answer. Anyone please suggest
what is abc? Please go through entire functional programming. Then, only you will clearly understand decorators..
@@Codeyug got it
def abc(x):
def mno():
result=x()
v2=float(input('Enter Third number:'))
result=result+v2
return result
return mno
def addition():
num1=float(input('Enter first number:'))
num2=float(input('Enter second number:'))
result=num1+num2
return result
addition=abc(addition)
print(addition())
Great! You can ask any doubt .. happy learning!
Dimag ka dahi karke raha hai is decorator ne...🤣🤣
After watching this video also..?
@@Codeyug i got cleared all concepts ur like god for me
Python kuchh araha hia kuchh nhi bhi
Kyu Bhai esa kyu bolra
Bro, keep practicing and keep learning. You will become master one day. I will clear your doubts..