I am creating a module in which a dictionary is used. This dictionary contains some key/value pairs, whose order must be preserved when using in other modules. But whenever I iterate over dictionary and print the keys, the keys are not in the order in which they key/value pairs are inserted.
So my question is how should I preserve the order of key/value pair in a dictionary?
Any help will be highly appreciated...
Thanx in advance...