Question: Use python for this 1) Write a function that accepts a multi-dimensional container of any size and converts it into a one dimensional associative array

Use python for this

1) Write a function that accepts a multi-dimensional container of any size and converts it into a one dimensional associative array whose keys are strings representing their value's path in the original container.

E.G. { 'one': { 'two': 3, 'four': [ 5,6,7] }, 'eight': { 'nine': { 'ten':11 } } }

turns into:

{ 'one/two':3, 'one/four/0':5, 'one/four/1':6, 'one/four/2':7, 'eight/nine/ten':11 } 

2) Now write a separate function to do the reverse.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!