Last active
August 15, 2019 03:42
-
-
Save shak360/dc4dc3e1bb77e9ae298429cc16606066 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
states = { | |
"AK": "O", | |
"AL": "S", | |
"AR": "S", | |
"AS": "O", | |
"AZ": "W", | |
"CA": "W", | |
"CO": "W", | |
"CT": "N", | |
"DC": "N", | |
"DE": "N", | |
"FL": "S", | |
"GA": "S", | |
"GU": "O", | |
"HI": "O", | |
"IA": "M", | |
"ID": "W", | |
"IL": "M", | |
"IN": "M", | |
"KS": "M", | |
"KY": "S", | |
"LA": "S", | |
"MA": "N", | |
"MD": "N", | |
"ME": "N", | |
"MI": "W", | |
"MN": "M", | |
"MO": "M", | |
"MP": "O", | |
"MS": "S", | |
"MT": "W", | |
"NA": "O", | |
"NC": "S", | |
"ND": "M", | |
"NE": "W", | |
"NH": "N", | |
"NJ": "N", | |
"NM": "W", | |
"NV": "W", | |
"NY": "N", | |
"OH": "M", | |
"OK": "S", | |
"OR": "W", | |
"PA": "N", | |
"PR": "O", | |
"RI": "N", | |
"SC": "S", | |
"SD": "M", | |
"TN": "S", | |
"TX": "S", | |
"UT": "W", | |
"VA": "S", | |
"VI": "O", | |
"VT": "N", | |
"WA": "W", | |
"WI": "M", | |
"WV": "S", | |
"WY": "W" | |
} | |
switcher = { | |
"N":"New England", | |
"W":"Pacific", | |
"O":"Pacific", | |
"M":"Mountain", | |
"S":"South Atlantic" | |
} | |
states_regions = dict((k,switcher[v]) for k,v in states.items()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment