Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
Python args and kwargs: Demystified (Summary)
You’re now able to use
**kwargs to accept a changeable number of arguments in your functions. You’ve also learned something more about unpacking operators. To recap, in this tutorial you’ve learned what
**kwargs actually mean, how to use
**kwargs in function definitions, how to use a single asterisk (
*) to unpack iterables, and how to use two asterisks (
**) to unpack dictionaries. And that just about wraps up this tutorial.
Become a Member to join the conversation.