I want to create an equivalent data structure I used in a C++ assignment for python. I'm having trouble figuring out how to do this. The structure is given below -
map < string, map < string, vector < int > > > invertedIndex;
Can you please point me in the right direction?
Edit : I know that list and dict are equivalents for vector and map respectively, I should have specified if there is a single line code in which I can initial this same data structure in python.