Which feature of Python allows us to handle different numbers and types of arguments?

  • Default arguments
  • Function overloading
  • Operator overloading
  • Variable-length arguments
Variable-length arguments (e.g., *args and **kwargs) allow Python functions to accept a varying number of arguments, enabling flexibility in function calls.
Add your answer
Loading...

Leave a comment

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