How to implement decorators in python?

Introduction Decorators in python wrap a function and modify its behavior in one way or other without having to directly change the source code of the function being decorated. Implementing decorators in python Example 1: Output: Example 2: Output: Previous post: JSON in python In-depth lesson on decorators by geeks for geeks