python + function with default values code example
Example 1: python default value
d = {'a': 1, 'b': 2}
print(d.get('c', 3)) # 3
Example 2: python function parameters default value
def F(a, b=None):
if b is None:
b = []
b.append(a)
return b