I import a module that only contains several dictionaries. How can I iterate over those?
Something along the lines of
import moduleX as data
for d in data:
do stuff with d
this obviously does not work as the module is not iterable. is there a way to extract all dicts from module as a collection and iterate through that collection?
My answer: