Is there a way to preserve duplicate keys in python dictionary
<p>is there any way to store duplicate keys in a dictionary?</p>

<p>I have a specific requirement to form pairs of requests and responses. </p>

<p>Requests from a particular node to another particular node form same keys. I need to store both those.</p>

<p>But if I tried to add them to dictionary, first one is being replaced by second. Is there any way?</p>
