Q. What is the utility of: -

(i) default arguments

(ii) Keyword arguments?


Answer

(i)

A parameter having a default value in function header becomes optional in function call. Functions call may or may not have value for it.

(ii)

Keyword arguments are the named arguments with assigned values being passed in the function call statement.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post