Delete a dictionary item if the key exists,del mydict[key]