デコレータ構文を使う
デコレータ print_args を作成しました。このデコレータは、装飾対象の関数が呼び出されるたびに、すべての引数とその値を表示します。
この演習はコースの一部です
Python関数の書き方
実践的なインタラクティブ演習
このサンプルコードを完成させて、この演習に挑戦してみましょう。
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)