def setdefault(self, key, default=None):
if key in self:<EOL><INDENT>return self[key]<EOL><DEDENT>self[key] = default<EOL>return default<EOL>
od.setdefault(k[,d]) -> od.get(k,d), also set od[k]=d if k not in od