Ask Your Question

Revision history [back]

how to use key as index in nested dictionary?

If, I have A={1:{2:3,4:2},2:{}}, i want to add elements to A[1]. How to add here?

click to hide/show revision 2
None

how to use key as index in nested dictionary?

If, If I have A={1:{2:3,4:2},2:{}}, i A={1:{2:3,4:2},2:{}}, and I want to add elements to A[1]. A[1]. How to add here?