default parameters function python code example
Example 1: python default arguments
def your_function(arg,kwarg='default'):
return arg + kwarg
Example 2: python function parameters default value
def F(a, b=None):
if b is None:
b = []
b.append(a)
return b