So I have an array like so ['test', 'testtwo'].
I wish to able to use that as an index for a dictionary like so myDict['test']['testtwo'].
Is this possible in python? Sorry for the short explanation.
EDIT:
exampleDict = {
'test': {
'testtwo': [
'',
''
]
}
}
And when doing some stuff in python I end up with the array ['test', 'testtwo'] and then need to use that to access exampleDict['test']['testtwo']. The keys change though and the number of keys in the array changes as well.
__list=['test', 'testtwo']; mydict = {__list: "foo" }?