Popular recipes tagged "states"http://code.activestate.com/recipes/tags/states/popular/2016-05-09T22:24:26-07:00ActiveState Code RecipesStates to Regions (Python)
2016-05-09T22:24:26-07:00Jackson Killianhttp://code.activestate.com/recipes/users/4194060/http://code.activestate.com/recipes/580661-states-to-regions/
<p style="color: grey">
Python
recipe 580661
by <a href="/recipes/users/4194060/">Jackson Killian</a>
(<a href="/recipes/tags/dictionary/">dictionary</a>, <a href="/recipes/tags/regions/">regions</a>, <a href="/recipes/tags/states/">states</a>).
</p>
<p>Python dictionary mapping two letter state abbreviations to their respective regions of the country (i.e. Midwest, North East, etc.)
N - North East
W - West
M - Mid West
S - South
O - Other</p>
Python Dictionary of US States and Territories (Python)
2014-10-11T19:56:18-07:00Jeff vGhttp://code.activestate.com/recipes/users/4190943/http://code.activestate.com/recipes/578949-python-dictionary-of-us-states-and-territories/
<p style="color: grey">
Python
recipe 578949
by <a href="/recipes/users/4190943/">Jeff vG</a>
(<a href="/recipes/tags/dict/">dict</a>, <a href="/recipes/tags/states/">states</a>, <a href="/recipes/tags/territories/">territories</a>).
</p>
<p>Handy for matching state abbreviations with their names. Also for iteration.</p>
Python Dictionary of US States and Territories (Python)
2010-07-14T19:37:21-07:00Mike Shultzhttp://code.activestate.com/recipes/users/4174394/http://code.activestate.com/recipes/577305-python-dictionary-of-us-states-and-territories/
<p style="color: grey">
Python
recipe 577305
by <a href="/recipes/users/4174394/">Mike Shultz</a>
(<a href="/recipes/tags/dict/">dict</a>, <a href="/recipes/tags/states/">states</a>, <a href="/recipes/tags/territories/">territories</a>).
</p>
<p>Handy for matching state abbreviations with their names. Also for iteration.</p>
State FIPS Codes Dict (Python)
2011-07-01T17:22:36-07:00Zach Williamshttp://code.activestate.com/recipes/users/4178496/http://code.activestate.com/recipes/577775-state-fips-codes-dict/
<p style="color: grey">
Python
recipe 577775
by <a href="/recipes/users/4178496/">Zach Williams</a>
(<a href="/recipes/tags/fips/">fips</a>, <a href="/recipes/tags/fips_codes/">fips_codes</a>, <a href="/recipes/tags/state/">state</a>, <a href="/recipes/tags/states/">states</a>).
</p>
<p>Had to put state codes with their FIPS code into a dict, and took way longer than I expected. Thought someone else might benefit from this.</p>