Python Decorators

Python Decorators :

A decorator in Python is a way to modify or add functionality to a function without changing its code. It uses the @ symbol to apply extra behavior to a function.

Syntax :


Example Program :




Output :


Post a Comment

0 Comments