+ 1

How to work

Assigning the default value to the attribute. How to work with it ?

7th Mar 2018, 5:41 PM
genios__
genios__ - avatar
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()
7th Mar 2018, 6:03 PM
HBhZ_C
HBhZ_C - avatar