I need to create some dicts with variable names. This works perfectly with this line:
for i in range(0,5):
locals()['dict{}'.format(i)] = {}
But how can I access on of these dictionaries?
I need to create some dicts with variable names. This works perfectly with this line:
for i in range(0,5):
locals()['dict{}'.format(i)] = {}
But how can I access on of these dictionaries?