+2 votes
in Class 12 by kratos

What are keyword arguments?

1 Answer

+4 votes
by kratos
 
Best answer

If there is a function with many parameters and we want to specify only some of them in function call, then value for such parameters can be provided by using their names instead of the positions. These are called keyword argument.

(eg) def simpleinterest(p, n=2, r=0.6)

' def simpleinterest(p, r=0.2, n=3)

...