I would like to turn the following dictionary:
dictionary = {
4388464: ['getting']
827862 : ['Taruma', 'Varuna']
...
}
into:
dictionary = {
4: {3: {8: {8: {4: {6: {4: {'words': ['getting']}}}}}}}
8: {2: {7: {8: {6: {2: {'words': ['Taruma', 'Varuna']}}}}}}
...
}
This will then allow me to use the dictionary like: dictionary[8][2][7][8][6][2]['words'] instead of: dictionary[827862].
prints: