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.
Questo esercizio fa parte del corso
Writing Functions in Python
Esercizio pratico interattivo
Prova a risolvere questo esercizio completando il codice di esempio.
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)