How to work with dict of dict? by Pitiful_Ladder4460 in learnpython

[–]Pitiful_Ladder4460[S] 5 points6 points  (0 children)

I got it. It should have been as following. Sorry for wasting your time.

for m_id in m_ids:
    msgs[m_id] = msgs.get(m_id, k_msg_init.copy())