I have a nested list which looks like this:
l = [[['0.056*"googl"'], ['0.035*"facebook"']], #Index 0
[['0.021*"mensch"'], ['0.012*"forsch"']], #Index 1
[['0.112*"appl"'], ['0.029*"app"']], # Index 2
[['0.015*"intel"'], ['0.015*"usb"']]] #Index 3
Now I want to append the Index (and the word Topic) of the sublists into the individual sublists like this:
nl = [[['0.056*"googl"', 'Topic 0'], ['0.035*"facebook"', 'Topic 0']],
[['0.021*"mensch"', 'Topic 1'], ['0.012*"forsch"', 'Topic 1']],
[['0.112*"appl"', 'Topic 2'], ['0.029*"app"', 'Topic 2']],
[['0.015*"intel"', 'Topic 3'], ['0.015*"usb"', 'Topic 3']]]
How can I do this?