In php, one can handle a list of state names and their abbreviations with an associative array like this:
In python an ordered dictionary is available in Python 2.7 (not yet released) and Python 3.1. It's called OrderedDict.