>A Byte of Python

Keyword Arguments

If you have some functions with many parameters and you want to specify only some parameters, then you can give values for such parameters by naming them - this is called keyword arguments. We use the name instead of the position which we have been using all along. This has two advantages - One, using the function is easier since we do not need to worry about the order of the arguments. Two, we can give values to only those parameters which we want, provided that the other parameters have default argument values.