Python Forum

Full Version: list of US states
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
using python tags but this is really json:

["Alabama","Alaska","Arizona","Arkansas","California","Colorado",
  "Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois",
  "Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland",
  "Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana",
  "Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York",
  "North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania",
  "Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah",
  "Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"]
download it today, save it where you can remember to find it, then in a future project you might need it.  you can edit it to be a python list assignment to some variable to have a module or embed some code.
I'd rather have a dictionary with the state and abbreviation please  Angel
And maybe latitude/longitude, area code ranges, a list of major msas within the state, nearby (touching) states, area, population density? I want ALL THE THINGS! :p
And, such a file already exists: https://www.census.gov/geo/maps-data/dat...bases.html
and more info here: ftp://ftp2.census.gov/geo/tiger/TGRGDB16/

This is the specific directory I was looking for: https://www.census.gov/geo/maps-data/data/nlt.html

The place files are the most interesting as they are textual based and drill down to street level
i didn't look but i hope all that stuff is in a form ready for easy use in python.
I have used it in multiple languages for many purposes