You have a function that takes three parameters, but sometimes you need to pass more arguments. Which technique allows for this?

  • Using default arguments
  • Using keyword arguments (kwargs)
  • Using optional parameters
  • Using variable-length argument lists (args)
To pass more arguments than expected, you can use variable-length argument lists (args), allowing for a flexible number of additional arguments.
Add your answer
Loading...

Leave a comment

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