Python Decorator, Step by step introduction
What is Decorator in Python and what problem decorators will try to solve.
Let me explain with an example.
Here we have 2 functions , calculate square and calculate cube.
def calc_square(numbers):
result = []
for number in numbers:
re...
waughkes.hashnode.dev4 min read