you work with dictionary.
In dictionary you work with the key to get your value. You don't care about how python arrange the key.
your key here are: 'res', 'com', 'ind', and  'other'
when you want to get your value you just type:
landUse['res'] this you will get 1
landUse['ind'] this you will get 3
 
cheers,
pujo

 
On 10/24/05, Shi Mu <[EMAIL PROTECTED]> wrote:
I typed:
landUse = {'res': 1, 'com': 2, 'ind': 3, "other" :[4,5,6,7]}
and when i checked landUse, I found it become:
{'ind': 3, 'res': 1, 'other': [4, 5, 6, 7], 'com': 2}
why the order is changed?
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to