Using Python, If I have this list:
cars = {'Honda': 'Civic', 'Audi': 'A4', 'Chevrolet': 'Camaro', 'Volkswagen': 'Passat', 'Jeep': 'Wrangler', 'Pontiac': 'G6'}
Python 2.6 prints it like this:
print(cars)
{'Pontiac': 'G6', 'Jeep': 'Wrangler', 'Chevrolet': 'Camaro', 'Honda': 'Civic', 'Volkswagen': 'Passat', 'Audi': 'A4'}
Python 3.3 prints it like this:
print(cars)
{'Jeep': 'Wrangler', 'Honda': 'Civic', 'Pontiac': 'G6', 'Chevrolet': 'Camaro', 'Volkswagen': 'Passat', 'Audi': 'A4'}
How does Python determine the order of the printed items? This is by default, without sorting the list first. Why doesn't either version print the list as is? How is this accomplished?