In Python, ____ is used to define a function that takes an arbitrary number of positional arguments.

  • def *args
  • def arguments
  • def function
  • def varargs
In Python, the syntax def function_name(*args) is used to define a function that can take an arbitrary number of positional arguments. The *args syntax allows you to pass a variable number of arguments to the function.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *