The use of args and kwargs in Python has often confounded me.
Few notes from Data Science From Stratch:
- The asterisk performs argument unpacking, which uses the elements of pairs as
individual arguments - That is, when we define a function like this, args is a tuple of its unnamed arguments and kwargs is a dict of its named arguments.
Code: