Functions in python require arguments and you can be rather expressive with them. You can have functions that accept any number of arguments and there's many nice use-cases to be able to pass around keyword arguments. Calmcode.

args

Untitled

Untitled

Untitled

kwargs

key word is a key attached with a specific value.

Untitled

Untitled

The order in which you place the arguments is important!

Untitled

Unpacking

The example in this video contains a call that is able to unpack both the *args  as well as the **kwargs.

Untitled