Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 18de79ebc1
Fetching contributors…

Cannot retrieve contributors at this time

executable file 62 lines (58 sloc) 1.296 kb
#!/usr/bin/env python
import sys
STATE_ABBRS = {
'Alabama': 'al',
'Alaska': 'ak',
'Arizona': 'az',
'Arkansas': 'ar',
'California': 'ca',
'Colorado': 'co',
'Connecticut': 'ct',
'Delaware': 'de',
'District of Columbia': 'dc',
'Florida': 'fl',
'Georgia': 'ga',
'Hawaii': 'hi',
'Idaho': 'id',
'Illinois': 'il',
'Indiana': 'in',
'Iowa': 'ia',
'Kansas': 'ks',
'Kentucky': 'ky',
'Louisiana': 'la',
'Maine': 'me',
'Maryland': 'md',
'Massachusetts': 'ma',
'Michigan': 'mi',
'Minnesota': 'mn',
'Mississippi': 'ms',
'Missouri': 'mo',
'Montana': 'mt',
'Nebraska': 'ne',
'Nevada': 'nv',
'New Hampshire': 'nh',
'New Jersey': 'nj',
'New Mexico': 'nm',
'New York': 'ny',
'North Carolina': 'nc',
'North Dakota': 'nd',
'Ohio': 'oh',
'Oklahoma': 'ok',
'Oregon': 'or',
'Pennsylvania': 'pa',
'Puerto Rico': 'pr',
'Rhode Island': 'ri',
'South Carolina': 'sc',
'South Dakota': 'sd',
'Tennessee': 'tn',
'Texas': 'tx',
'Utah': 'ut',
'Vermont': 'vt',
'Virginia': 'va',
'Washington': 'wa',
'West Virginia': 'wv',
'Wisconsin': 'wi',
'Wyoming': 'wy'
}
if __name__ == "__main__":
print STATE_ABBRS[sys.argv[1]]
Jump to Line
Something went wrong with that request. Please try again.