Determine whether a key is present in a dictionary,"d.setdefault(x, []).append(foo)"