Default Arguments in Functions


☞A parameter having default value in the function header is known as default parameter.

Example :

def add(a=0, b=0, c=0):	#a, b and c are default arguments
    d=a+b+c
    print(d)

#__main__
add(10, 20, 30)      
NOTE :-
After default argument, non-default arguments are not allowed i.e. you cannot write like this :
def add(a=0, b, c=0)