Like this:
old_dict = {'HOUSE NAME': '1A', 'White Bread loaf large': 1, 'Brown Bread loaf large': 1, 'Skimmed Milk Pint': 1, 'Cheddar Cheese Medium 300g': 1}
new_dict = {old_dict.pop('HOUSE NAME'): old_dict}
If you have a list of such dictionaries, then just place this inside a loop
new_dict = {}
for old_dict in old_list_of_dicts:
new_dict[old_dict.pop('HOUSE NAME')]: old_dict
EDIT: Explanation added
Why does this work? dict.pop(key)
does two things. Firstly, it returns the value of the dictionary attached to key. Secondly, it removes that entry from the dictionary. As both of these are things asked for in this question, it makes sense to use this function. It's also faster than looping over every entry when creating a new dictionary as in some other answers [note: I haven't tested this explicitly)]. It should be noted however that this modifies the existing dictionary. If this is not desirable, you can either copy the previous old dictionaries or use one of the other answers provided
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…