how to extract multi level dictionary keys/values in python
<p>There is a two level dictionary in python:</p>

<p>for instance here: <code>index[term][id] = n</code><br>
how to get the  <code>term</code> and <code>n</code> when <code>id = 3</code>?</p>

<p>Or it would be perfect if it returns in a form like <code>result[id] = [term, n]</code></p>