Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
list of US states
#1
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.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
I'd rather have a dictionary with the state and abbreviation please  Angel
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#3
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
Reply
#4
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
Reply
#5
i didn't look but i hope all that stuff is in a form ready for easy use in python.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#6
I have used it in multiple languages for many purposes
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020