Maybe you can make use of this:
The assignment specifically does not ask for printing name of dict
If OP wants to do this, it can be done with modified assignment. :-)
dictionaries = { "name1": {'key1': 'value1', 'key2': 'value2'}, "name2": {'key3': 'value3', 'key4': 'value4'}, "name3": {'key5': 'value5', 'key6': 'value6'} } for dictionary_name, subdictionaries in dictionaries.items(): print(dictionary_name) for key, value in subdictionaries.items(): print(f"\t{key}:{value}")
Output:name1
key1:value1
key2:value2
name2
key3:value3
key4:value4
name3
key5:value5
key6:value6
The assignment specifically does not ask for printing name of dict
If OP wants to do this, it can be done with modified assignment. :-)