What are decorators in Python?

Answer Posted / nashiinformaticssolutions

Decorators are used to alter the appearance of a function while retaining its structure. They are often defined before the function that they improve.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you define linear regression?

110


How will inspect missing data and when are they important for your analysis?

166


What is the roc curve?

103


Differentiate between type I and type ii error?

110


What is the best laptop for data science?

110






What is cart and chaid? How is bagging different from boosting?

99


Write the formula to calculate r-square?

121


What motivates you to transition from academia to data science?

114


What is the basic responsibility of a data scientist?

111


How can you iterate over a list and also retrieve element indices at the same time?

147


What is interpolation and extrapolation?

119


Why do you need a for loop?

112


Which package is used to do data import in r and python?

118


Explain how to write a table to a file?

114


Differentiate between supervised and unsupervised learning?

100