May-18-2018, 01:48 AM
Do you mean like this?
>>> thedict = { ... 'aaaa': { ... '123': 'One Two Three', ... '234': 'Two Three Four' ... }, ... 'bbbb': { ... '123': 'One Two Three', ... '456': 'Four five six', ... } ... } >>> thedict {'aaaa': {'123': 'One Two Three', '234': 'Two Three Four'}, 'bbbb': {'123': 'One Two Three', '456': 'Four five six'}} >>> del thedict['bbbb']['123'] >>> thedict {'aaaa': {'123': 'One Two Three', '234': 'Two Three Four'}, 'bbbb': {'456': 'Four five six'}} >>>