Literally no word to tell how happy i am feeling right now. Since many time back i even watched 10 videos of decorater, i didn't understand the actual concept.. He made me so clear. Best teacher anyone can find online
Bahi mene eak 2 million subscriber you tube ra ki dekh rehe tha ,uska video samaj nehi aya ,jab apka video dekha matlab kya bolo , love you bro, you are amazing
Bahut accha samjhaya aapne main bhi baakiyo ki tarah famous channels par dekha par itna accha koi nahi samjha paaya 👍 👍 Ek doubt tha- jo second example tha (jisme 10 ko 15 kiya hai ) Usme decor () me hum agar num function pass bhi nahi karengey to bhi kaam ho raha hai Or maine break point laga k bhi dekha same flow hai control kaa dono case me To aisa kyu hai ? Or fir humne jabardsati num function kyu pass kiya as a paramter decor me ??
decor1 did not get parameter bacause his goal is only to add some feature in num() thats why it simply call num() and add some feature in it . if num() carrying some parameters then we also have pass those parameters whenever that num() is called
I don't understand the use of inner function , we can enhance num function in decor function so why to use one extra function that is inner kindly explain
face main dikha raha hu bahot lambe samay se bahot se videos me th-cam.com/video/NbNgUqIuhv8/w-d-xo.html Jis din se Face dikhaya hai uss din se subscriber badhne k bajay ghatne lage hai...
Bhai mene aise kiya..... def decor(num): print('before enhancing') num() print('after enhancing') def num(): print('we will use this func') print('we will use this func and will enhance this in decprator') decor(num)
obviously this is useful but when we are working on advance level then there output of function is not like kind of these so there we want to use this method.
result = decor(decor1(num)) print(result()) this is because decor1 inner function does adding , then on result 15 you are applying decor which does multiplying. Hope you will get it ....
def decor(num): def inner(): print("If: Before enhancing function ") num() print("If: after enhancing function") return inner def num(): print("we will use this function") print("and will enhance this in decorator") num = decor(num) num() output galat aa rha hai
Thanks! was searching this topic for about 2 hours and was still not satisfied but after watching this video things got crystal clear
Thanks
Yes brother
same here brother
Bhai super!!!! i have never understood decorator in my life... you have made me understood it very easily .... hats off !!!
I was desperately searching for this kind of explanation! Just wow👍❤️
Literally no word to tell how happy i am feeling right now. Since many time back i even watched 10 videos of decorater, i didn't understand the actual concept.. He made me so clear. Best teacher anyone can find online
Well explained. No one like you explained past. Mind blowing. Got clarity. After watching tis short video, I liked and subscribed your channel.
Respect for you man. No one can explain this concept like you.
Really superb brother! I have seen many decorator videos but none is like urs...excellent explaination. 🙏😎hatsoff
Thank you very much for such great explanation ❤
This 1 video is better than watching 10 videos ❤!
Lot of LOVE
This lecture should be 1000 star.Thank you so much sir for this simple explanation.God blessed you
Bahi mene eak 2 million subscriber you tube ra ki dekh rehe tha ,uska video samaj nehi aya ,jab apka video dekha matlab kya bolo , love you bro, you are amazing
Your video is distinctive amongst all on TH-cam..I searched and saw many videos and articles but none explain in such detail...keep up the work bhaiya
Bahut accha samjhaya aapne main bhi baakiyo ki tarah famous channels par dekha par itna accha koi nahi samjha paaya
👍 👍
Ek doubt tha-
jo second example tha (jisme 10 ko 15 kiya hai )
Usme decor () me hum agar num function pass bhi nahi karengey to bhi kaam ho raha hai
Or maine break point laga k bhi dekha same flow hai control kaa dono case me
To aisa kyu hai ?
Or fir humne jabardsati num function kyu pass kiya as a paramter decor me ??
first I mess my mind looking at complexity, but in the end it was worth to watch. I got you decorator 😅. Thanks for explaining how program run .
best and easy way to explain all important and confusing concept of python
Sir, your explaination really awesome, Thank you sir.
bro u r truly gem i have now completely understood this complex concept only because of you 🙏
Excellent Explanations 👍👍👍
Thanks Bhai it was really confusing topic for me in python but you made it easy for me to understand.
Thanks bro.
Really helped a lot.....thanks a lot for explaining so patiencefully
thanxx sir ,bda dimag khrab kr ra tha y decorator ka concept but ab aagya smjh
I loved ❤ your explanation...
This guy is a gem.
trust me ..... you really explained this concept very well sir.
Thank You So Much! You've Made Me Understand This Concept Wonderful Explanation
very nice explanation in simple words
great explanation sir
aap ne bahot achhe se explain kia thank you so much 👍
You are just awesome.. 🔥🔥
dude iam looking for your video,at last i got it
Very nice explanation...
Thnx Bro Apne Thoda Advance Level Ka use Sikhaya
Great explanation.....
really superb..... love it
Well explained, thank you Sir!
6:00 Superb love ♥
Great man! Very simple way to go
Great video sir.
superb bhai...
superb sir
your video was better than codewithharry and mysirji's video
Bhayankar video brother, mza aa gaya
Owsm explanation!!
Amazing tutorial
Well Explained.
Bhaiiii.....
MOJ KRDI
Nicely explained😊
Wonderful explanation!
i really loved your explanation but i kinda lost track during debug and passing of inner function at the end.
Inheritance se bhi kr skte h output same aaega
Do you have the video on Generator, setter, and deleter
Super awesome brother
sir, you are awesome
Great explain bro
nice explanation
Wow. Aap data science padate ho kya
thanks bro
great video but please raise your volume
Super ❤❤❤❤
11:50
def decor(num):
def inner():
return num()+5
return inner
@decor
def num():
return 10
print(num())
Python ki series kitane din tak finish ho jayega?
very welldone
Nice
Sir your videos are superb and so detailed but ap confuse kr dete ho yr smjhate smjhate🙄
what is practical use of decorator? where it is used?
When you want to add some functionality to your existing function.
kamal
what happen if function decor1() carry any parameters in it or function num() carry any parameters
decor1 did not get parameter bacause his goal is only to add some feature in num() thats why it simply call num() and add some feature in it .
if num() carrying some parameters then we also have pass those parameters whenever that num() is called
Rajesh Bhai, I am keen in learning Advance python, how do we connect?
Follow this th-cam.com/play/PLbGui_ZYuhijd1hUF2VWiKt8FHNBa7kGb.html
@@geekyshows Thanks
13:59 yha num as a parameter pass bhi nhi karenge to bhi chalega, to bhi output:15 aata he
22:56 par lassun
11:05
Please make a video on how to configure debugger in vscode... Please help🙏🙏🙏🙏🙏. Or please provide a link.
Can you snd me interview question for python
at 22:03 I cant understand why is the num() has decor1 inner func
I don't understand the use of inner function , we can enhance num function in decor function so why to use one extra function that is inner
kindly explain
Awsm
Hi sir aap kabhi apna face to deekhaye youtube pe isse apka 1 million subscriber ja sakta hai
face main dikha raha hu bahot lambe samay se bahot se videos me th-cam.com/video/NbNgUqIuhv8/w-d-xo.html Jis din se Face dikhaya hai uss din se subscriber badhne k bajay ghatne lage hai...
how can fun function invoke num() even though their name are different?
please someone respond im really confused
Fun acted as parameter and num given as it's argument
Can anyone explain why a = 50 and not 10 in the expression add=a+5.
Bhai mene aise kiya.....
def decor(num):
print('before enhancing')
num()
print('after enhancing')
def num():
print('we will use this func')
print('we will use this func and will enhance this in decprator')
decor(num)
def num():
return 10
rtn=num()
print(rtn+5)
Aise bhi to ho skta tha ?😂
😂😂😂😂🤦🏻♂️
Ha jarur
obviously this is useful but when we are working on advance level then there output of function is not like kind of these so there we want to use this method.
23:00 how program jump from a=num() to b=num()
what happen if we will write @decor1 first then @decor in programme then output will be 75 ,can you please explain this
result = decor(decor1(num))
print(result())
this is because decor1 inner function does adding , then on result 15 you are applying decor which does multiplying.
Hope you will get it ....
@decor pehle kyu badme @decor 1 kyu... explain
def decor(num):
def inner():
print("If: Before enhancing function ")
num()
print("If: after enhancing function")
return inner
def num():
print("we will use this function")
print("and will enhance this in decorator")
num = decor(num)
num()
output galat aa rha hai
return inner ka indentation galat hai
❤
niceeeee
fun() ko call kiya hua h to num() function kaise call ho raha h?
time 6:54
fun ek parameter hai jisme hamne num ko argument banake bhejdiya
Sir please please please tell that how is @ decorator working you didnt tell that please i am still confused
this is inbuilt python feature means inner calling function to modified as simple name @decorator naming convention
ye banda confirm jannati hai
bro mujhe import module bhejna
😍
sir error aah raha hai
🖤🖤
Plz explain me
If __name__=__main__
nehi aya samajhme sir
@ 5:34 I'd not removed indendention for return function,
For that I's getting error continuesuly, so frustrated experience....baba re baba
That's pretty much life!
Smjh ni aaya
i am not able to understand this 😪😪😪😪😪😪😪😪😪😪😪😪😪😪😪😪
me too bro
bro i want to see u