# werkzeug.MultiDict.setdefault¶

MultiDict.setdefault(key, default=None)[source]

Returns the value for the key if it is in the dict, otherwise it returns default and sets that value for key.

Parameters: key – The key to be looked up. default – The default value to be returned if the key is not in the dict. If not further specified it’s None.