I am writing a script supporting users in FE analysis. During the runtime of the script I get a list of FEA entities like this
Ents=['BAR','SHELL','BEAM']
I have to create a dictionary for each item in the list to collect and store the correct values from another source and the number of possible FEA entities is long and may change if a new entity is introduced.
Is there a way to create a dictionary "dynamically during the runtime" (I have no better idea to describe my request) like
for item in Ents:
item+'_dict' = dict()
So as a result I get 3 dicts for the example above: BAR_dict, SHELL_dict and BEAM_dict
And for
Ents = ['TRUSS','WELD','CONNECTOR']
I get a dict named TRUSS_dict, WELD_dict and CONNECTOR_dict