Tuesday, March 13, 2018

Default Arguments


Default Arguments in Python 3

A default argument is an argument that assumes a default value if a value is not provided in the function call for that argument.

 The following example gives an idea on default arguments, it prints default age if it is not passed.


and the output is :