# general syntax; default can be anything dict.setdefault(key[, default]) # Example: dict_ = {} dict_.setdefault('mykey', {}) print(dict_) # {'mykey': {}}