I have a multidimensional dictionary. List of dimensions is given as a variable. How do I use all the dimensions in that list and access the value stored at the end.
def get_value(dict, dimensions):
"""
dict is the multidimensional dict
dimensions is a list of strings which specify all the dimensions
"""
How do I write the below command in a pythonic way
dict[dimensions[0]][dimensions[1]][dimensions[2]]......[dimensions[len(dimensions)-1]]