+ 1
How to work
Assigning the default value to the attribute. How to work with it ?
1 Answer
0
If you mean by attribute a parameter this will be done inside function as
def func(a=10,b=5):
return a + b
A call to this function with default value will outputs 15 is the sum of a and b
func()