Use the pprint module to print dictionaries. It happens to print the
keys in sorted order, which makes the output independent from the hash table order (which can differ bewteen Python versions).
Showing
Please register or sign in to comment