1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Writing Functions in Python

Connected

अभ्यास

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.

निर्देश 1/2

undefined XP
  • 1

    Decorate my_function() with the print_args() decorator by redefining the my_function variable.

  • 2

    Decorate my_function() with the print_args() decorator using decorator syntax.