Using decorator syntax
You have written a decorator called print_args
that prints out all of the arguments and their values any time a function that it is decorating gets called.
This exercise is part of the course
Writing Functions in Python
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
def my_function(a, b, c):
print(a + b + c)
# Decorate my_function() with the print_args() decorator
my_function = ____
my_function(1, 2, 3)