Python 101 : Keyword arguments

To avoid confusing positional "regular" argument, we could name our parameters and specify them by name using keyword arguments.

When calling a function with keyword arguments, we specify arguments by their names.

We could even specify them in a different order as we could see in our example.


If we have a function with both positional and keyword arguments, the positional arguments should come first.


Leave as a comment: