Back to Browse

18 | PYTHON TUTORIAL | DAY 18 | CODE RSR

87 views
Nov 30, 2024
11:44

This video is about decorators in Python. Decorators are a way to modify the behavior of a function without changing its code. They are useful for tasks such as logging, timing, and authentication. The video starts with an example of a simple decorator that prints a message before and after a function call. The instructor then shows how to create a decorator that takes arguments. This is done by using a decorator factory. The video concludes with a discussion of the benefits and drawbacks of using decorators. Decorators can make code more concise and readable. However, they can also make code more difficult to understand and debug.

Download

1 formats

Video Formats

360pmp420.3 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

18 | PYTHON TUTORIAL | DAY 18 | CODE RSR | NatokHD