default value for dict python code example Example: python defaultdict default value d = defaultdict(lambda:1)