Decorator in python | What is Decorator in Python | Advanced Python Tutorial

  Рет қаралды 17,168

Code-yug

Code-yug

2 жыл бұрын

Decorator in python | What is Decorator in Python | Advanced Python Tutorial
This video is a part of advanced python tutorial. In this video,i have covered one of the most important topic for interview i.e decorator in python. I have explained with two examples.Will make more videos on this topic.
you will learn:-
1) Python Tutorial in Hindi
2) Decorator in Python
3) What is Decorator in Python
source code :-
About Python Tutorial:- python for beginners-Go from Zero to Hero in python.This tutorial includes python programming videos from basics to advanced
master in python:- bit.ly/392NTMq
More tutorials:-
file handling in python:- bit.ly/3nBEW5c
string in python:- bit.ly/3lnygFc
About codeyug :-
Codeyug provides tutorials for building your programming skills.Here,you will learn various programming languages,computer science,web development with free of cost.
learn from codeyug:- bit.ly/3h3Bv0c
SHARE | SUBSCRIBE | LIKE
-- - - - - - - - - - - - - - - - - -Thanks for watching this video - - - - - - - - - - - - - - - - - -- -
Our social links:-
you tube:- bit.ly/3h3Bv0c
instagram:- bit.ly/3mlspQu
gmail :- shantanukejkar@gmail.com
creator:-
$ -shantanu kejkar -$
About me:- shorturl.at/nCOU9
#python #python3 #programming #codeyug #tutorial #coding

Пікірлер: 65
@khetrabasitechvideo362
@khetrabasitechvideo362 Жыл бұрын
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
@Money-em2jz
@Money-em2jz 2 күн бұрын
Well explained brooooooooooo please please continue don't stop no one is teaching like you
@shantanukadukar6496
@shantanukadukar6496 Жыл бұрын
Perfectly explained. Thanks bro, i have gone through many videos but not getting the actual concept but the way you explained is just perfect.
@Codeyug
@Codeyug Жыл бұрын
Keep learning..
@anassohail6576
@anassohail6576 Жыл бұрын
Amazing clearity in explanation
@siddhigolatkar8558
@siddhigolatkar8558 12 күн бұрын
Thank you
@Bhupeshpal
@Bhupeshpal 9 ай бұрын
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
@Codeyug
@Codeyug 8 ай бұрын
Glad to hear that
@clau_X
@clau_X 11 ай бұрын
best channel for learning python.. thanks alot
@Codeyug
@Codeyug 8 ай бұрын
You are most welcome
@VarunKulkarni-pk1yg
@VarunKulkarni-pk1yg 2 ай бұрын
You are amazing man
@Codeyug
@Codeyug 2 ай бұрын
Please share my channel with friends!
@pahadiraishgamer1777
@pahadiraishgamer1777 Жыл бұрын
Great explanation 👍👌👌
@Codeyug
@Codeyug Жыл бұрын
Thank you nad please check courses in playlist section
@kshamapathak4693
@kshamapathak4693 Жыл бұрын
U are just osm to explain the concepts...
@Codeyug
@Codeyug Жыл бұрын
Thanks..please check playlists
@dayasagarmittakol3545
@dayasagarmittakol3545 13 күн бұрын
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..
@Codeyug
@Codeyug 8 күн бұрын
I will come to you on this.
@rahimkhizar3301
@rahimkhizar3301 Жыл бұрын
Lots of love bhai maza a gaya
@Codeyug
@Codeyug Жыл бұрын
Thanks ❤ & I have created a small playlist on decorator.. Please check
@mr_pavya
@mr_pavya 2 жыл бұрын
Thanks sir ...nice teaching 👌
@Codeyug
@Codeyug 2 жыл бұрын
Thanks... Oop series going on.. Have a look at playlist
@JustPython
@JustPython 5 ай бұрын
number one video
@Codeyug
@Codeyug 5 ай бұрын
Thanks
@146aarti5
@146aarti5 9 ай бұрын
Superb explanation
@Codeyug
@Codeyug 9 ай бұрын
Thank you 🙂
@shelly1067
@shelly1067 Жыл бұрын
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!!!
@pradipchovatiya2579
@pradipchovatiya2579 Жыл бұрын
@13:43 min why iner function call return to decor logically not understand..... please explain..
@vaibhavtandale4233
@vaibhavtandale4233 2 жыл бұрын
nice teaching sir
@Codeyug
@Codeyug 2 жыл бұрын
Thank you vaibhav... Keep going.. 👍👍
@nandinirm2234
@nandinirm2234 2 жыл бұрын
Here font size is correct Good explanation
@Codeyug
@Codeyug 2 жыл бұрын
Keep going.. 😃
@Phadi_Vloger
@Phadi_Vloger 3 ай бұрын
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.
@Codeyug
@Codeyug 3 ай бұрын
It is necessary
@Phadi_Vloger
@Phadi_Vloger 3 ай бұрын
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.
@Codeyug
@Codeyug 3 ай бұрын
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.
@Phadi_Vloger
@Phadi_Vloger 3 ай бұрын
@@Codeyug thanku
@prathameshhiremath1379
@prathameshhiremath1379 Жыл бұрын
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
@Codeyug
@Codeyug Жыл бұрын
Thanks and please do share
@yuvrajingale6260
@yuvrajingale6260 2 жыл бұрын
Sirji your explanation is easy i wrote same program of 2 number it shows 'NoneType' object is not callable. How do i fix this?
@Codeyug
@Codeyug 2 жыл бұрын
Program send kro muze on Instagram.. Link about me milega
@RamaKrishna-ll8iz
@RamaKrishna-ll8iz Жыл бұрын
@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
@Codeyug
@Codeyug Жыл бұрын
abc(x)? You should pass addition in abc
@kshamapathak4693
@kshamapathak4693 Жыл бұрын
I want to learn to build projects with my own.. ca u guid plz
@Codeyug
@Codeyug Жыл бұрын
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.
@kshamapathak4693
@kshamapathak4693 Жыл бұрын
@@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.
@erudite600
@erudite600 2 жыл бұрын
Sir plz teach python for beginners live classes
@Codeyug
@Codeyug 2 жыл бұрын
Playlist available hai..Live krunga KZfaq pe.. But abhi nahi
@erudite600
@erudite600 2 жыл бұрын
@@Codeyug ok sir
@adityashrirang2142
@adityashrirang2142 Жыл бұрын
Sir staticMethod batayena thoda confusion ho rha
@Codeyug
@Codeyug Жыл бұрын
Please check my oop playlist.. Everything is covered. You can also search 'staticmethod in python codeyug'.
@adityashrirang2142
@adityashrirang2142 Жыл бұрын
@@Codeyug thank you sir
@RamaKrishna-ll8iz
@RamaKrishna-ll8iz Жыл бұрын
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
@Codeyug Жыл бұрын
what is abc? Please go through entire functional programming. Then, only you will clearly understand decorators..
@RamaKrishna-ll8iz
@RamaKrishna-ll8iz Жыл бұрын
@@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())
@Codeyug
@Codeyug Жыл бұрын
Great! You can ask any doubt .. happy learning!
@pranavkulkarni18
@pranavkulkarni18 4 ай бұрын
you are making complicated and confusing code examples. please don't make confusion. great effort from you. nice playlist.
@Codeyug
@Codeyug 4 ай бұрын
Esse simple examples aapko kahi nhi milega. Addition ke example me kya complex and confusing hai ?
@PrashantKumar-wz1qm
@PrashantKumar-wz1qm Күн бұрын
Bro this is not confusing actually it's quite easy if you go to other channels there it becomes difficult to understand.
@surajbhopi6161
@surajbhopi6161 Жыл бұрын
Dimag ka dahi karke raha hai is decorator ne...🤣🤣
@Codeyug
@Codeyug Жыл бұрын
After watching this video also..?
@surajbhopi6161
@surajbhopi6161 Жыл бұрын
@@Codeyug i got cleared all concepts ur like god for me
@sushilbhardwaz4744
@sushilbhardwaz4744 Жыл бұрын
Python kuchh araha hia kuchh nhi bhi
@DhavalAhir10
@DhavalAhir10 Жыл бұрын
Kyu Bhai esa kyu bolra
@Codeyug
@Codeyug Жыл бұрын
Bro, keep practicing and keep learning. You will become master one day. I will clear your doubts..
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 5 МЛН
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 72 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
00:56
صدام العزي
Рет қаралды 53 МЛН
КАРМАНЧИК 2 СЕЗОН 7 СЕРИЯ ФИНАЛ
21:37
Inter Production
Рет қаралды 551 М.
What are decorators in python
39:21
Chai aur Code
Рет қаралды 15 М.
Python OOP Tutorial 5: Special (Magic/Dunder) Methods
13:50
Corey Schafer
Рет қаралды 846 М.
Function Decorator in Python (Hindi)
24:20
Geeky Shows
Рет қаралды 63 М.
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 5 МЛН