Python Forum

Full Version: how to list/count the number of dictionaries
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all

I'm using dictionaries to record physical quantities (tensors, vectors, scalars) from a (huge) Ascii file.
After reading, I've several dictionaries I would like to record (in a hdf5 file); obviously their number differs from a result file to another one

From a single dictionary, we can find a lot of materials saying how to list, count, get keys and values, but I haven't found so far a way to count and list the number of distionaries I have: how to proceed?

Thanks for your support

Paul
please, show your code, i.e. how you create your dicts
Sorry I understand my mistake (I've been confused)

Basically I just need to create a list where all dictionaries are recorded and called afterward Sick