1.

What are keyword arguments?

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)



Discussion

No Comment Found