I have some lists defined as the following :
main_0 = ['Main_0']
main_1 = ['Main_1']
main_2 = ['Main_2']
level_0 = ['LEVEL0',
'LEVEL0_1',
'LEVEL0_2']
level_1 = ['LEVEL1',
'LEVEL1_1']
level_2 = ['LEVEL2']
val_0 = [1, 2, 3]
val_1 = [10, 20]
val_2 = [52]
And I want to create a nested dictionary like the following:
{'Main_0' : {'LEVEL0' : 1,
'LEVEL0_1' : 2,
'LEVEL0_2' : 3},
'Main_1' : {'LEVEL1' : 10,
'LEVEL1_1' : 20},
'Main_2' : {'LEVEL2' : 52}}
Is that even possible or should I tackle this problem with a different data structure? Which one in that case?