home
NOTE: Under Construction - I'm in the middle of upgrading my site and lots of stuff is kinda broken. Please forgive the mess.

Example Data - Unites States Names And Abbreviations

December 2021

_NOTE: The formatting of these is off because of an update to the most recent version of MDX. You can still copy them, but the run off the side a bunch_

I make collections of copy/paste code snippets to setup data for programming examples. This one is U.S. state names and abbreviations in various formats.

### State Names Array/List - Sorted

Code
state_names = ['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']
Code
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

### State Names Array/List - Randomized

Code
state_names_randomized = ['Nebraska', 'Colorado', 'Massachusetts', 'Utah', 'West Virginia', 'Mississippi', 'North Dakota', 'Iowa', 'California', 'Tennessee', 'Virginia', 'North Carolina', 'Rhode Island', 'Arizona', 'Ohio', 'New Jersey', 'Michigan', 'Maine', 'Illinois', 'Alaska', 'Idaho', 'Kentucky', 'Wyoming', 'Connecticut', 'Pennsylvania', 'Alabama', 'Kansas', 'Indiana', 'Georgia', 'Nevada', 'Hawaii', 'South Dakota', 'South Carolina', 'Oklahoma', 'Vermont', 'New Hampshire', 'New York', 'Florida', 'Maryland', 'New Mexico', 'Wisconsin', 'Missouri', 'Louisiana', 'Oregon', 'Washington', 'Montana', 'Arkansas', 'Minnesota', 'Delaware', 'Texas']
Code
Nebraska
Colorado
Massachusetts
Utah
West Virginia
Mississippi
North Dakota
Iowa
California
Tennessee
Virginia
North Carolina
Rhode Island
Arizona
Ohio
New Jersey
Michigan
Maine
Illinois
Alaska
Idaho
Kentucky
Wyoming
Connecticut
Pennsylvania
Alabama
Kansas
Indiana
Georgia
Nevada
Hawaii
South Dakota
South Carolina
Oklahoma
Vermont
New Hampshire
New York
Florida
Maryland
New Mexico
Wisconsin
Missouri
Louisiana
Oregon
Washington
Montana
Arkansas
Minnesota
Delaware
Texas

### State Names Array/List (Including Territories) - Sorted

Code
state_names_sorted = ['Alabama', 'Alaska', 'American Samoa', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut', 'Delaware', 'District Of Columbia', 'Florida', 'Georgia', 'Guam', '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', 'Northern Mariana Is', 'Ohio', 'Oklahoma', 'Oregon', 'Pennsylvania', 'Puerto Rico', 'Rhode Island', 'South Carolina', 'South Dakota', 'Tennessee', 'Texas', 'Utah', 'Vermont', 'Virginia', 'Virgin Islands', 'Washington', 'West Virginia', 'Wisconsin', 'Wyoming']
Code
Alabama
Alaska
American Samoa
Arizona
Arkansas
California
Colorado
Connecticut
Delaware
District Of Columbia
Florida
Georgia
Guam
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
Northern Mariana Is
Ohio
Oklahoma
Oregon
Pennsylvania
Puerto Rico
Rhode Island
South Carolina
South Dakota
Tennessee
Texas
Utah
Vermont
Virginia
Virgin Islands
Washington
West Virginia
Wisconsin
Wyoming

### State Names Array/List (Including Territories) - Randomized

Code
state_names_randomized = ['New Jersey', 'Vermont', 'Wyoming', 'Tennessee', 'Indiana', 'Washington', 'Wisconsin', 'Georgia', 'Arizona', 'Florida', 'West Virginia', 'Texas', 'Illinois', 'District Of Columbia', 'Northern Mariana Is', 'Kentucky', 'Hawaii', 'Puerto Rico', 'Mississippi', 'Connecticut', 'Oregon', 'Minnesota', 'Massachusetts', 'Pennsylvania', 'Michigan', 'North Carolina', 'Utah', 'Iowa', 'Nevada', 'New Hampshire', 'Maryland', 'Kansas', 'Virgin Islands', 'Oklahoma', 'California', 'Maine', 'Colorado', 'New York', 'Alabama', 'Ohio', 'Nebraska', 'South Carolina', 'Montana', 'South Dakota', 'Rhode Island', 'Delaware', 'New Mexico', 'Guam', 'Virginia', 'Alaska', 'Louisiana', 'Missouri', 'North Dakota', 'Arkansas', 'Idaho', 'American Samoa']
Code
New Jersey
Vermont
Wyoming
Tennessee
Indiana
Washington
Wisconsin
Georgia
Arizona
Florida
West Virginia
Texas
Illinois
District Of Columbia
Northern Mariana Is
Kentucky
Hawaii
Puerto Rico
Mississippi
Connecticut
Oregon
Minnesota
Massachusetts
Pennsylvania
Michigan
North Carolina
Utah
Iowa
Nevada
New Hampshire
Maryland
Kansas
Virgin Islands
Oklahoma
California
Maine
Colorado
New York
Alabama
Ohio
Nebraska
South Carolina
Montana
South Dakota
Rhode Island
Delaware
New Mexico
Guam
Virginia
Alaska
Louisiana
Missouri
North Dakota
Arkansas
Idaho
American Samoa

### State Abbreviations Array/List (With Territories)- Sorted

Code
state_abbreviations_sorted = ['AL', 'AK', 'AS', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'DC', 'FL', 'GA', 'GU', 'HI', 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MD', 'MA', 'MI', 'MN', 'MS', 'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'MP', 'OH', 'OK', 'OR', 'PA', 'PR', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VA', 'VI', 'WA', 'WV', 'WI', 'WY']
Code
AL
AK
AS
AZ
AR
CA
CO
CT
DE
DC
FL
GA
GU
HI
ID
IL
IN
IA
KS
KY
LA
ME
MD
MA
MI
MN
MS
MO
MT
NE
NV
NH
NJ
NM
NY
NC
ND
MP
OH
OK
OR
PA
PR
RI
SC
SD
TN
TX
UT
VT
VA
VI
WA
WV
WI
WY

### State Abbreviations Array/List (With Territories) - Randomized

Code
state_abbreviations_randomized = ['VT', 'VI', 'KS', 'CO', 'MT', 'NE', 'MP', 'IN', 'DE', 'MN', 'ME', 'NH', 'NV', 'ID', 'FL', 'NC', 'UT', 'KY', 'WI', 'LA', 'TN', 'GU', 'PA', 'DC', 'WY', 'IL', 'AL', 'SC', 'MD', 'VA', 'IA', 'CA', 'CT', 'SD', 'OK', 'AS', 'NJ', 'OH', 'NM', 'NY', 'HI', 'WA', 'OR', 'WV', 'AK', 'AR', 'ND', 'MS', 'TX', 'MA', 'GA', 'RI', 'MO', 'AZ', 'PR', 'MI']
Code
VT
VI
KS
CO
MT
NE
MP
IN
DE
MN
ME
NH
NV
ID
FL
NC
UT
KY
WI
LA
TN
GU
PA
DC
WY
IL
AL
SC
MD
VA
IA
CA
CT
SD
OK
AS
NJ
OH
NM
NY
HI
WA
OR
WV
AK
AR
ND
MS
TX
MA
GA
RI
MO
AZ
PR
MI

### State Abbreviations JavaScript Object

Code
const stateAbbreviations = { AL: 'Alabama', AK: 'Alaska', AZ: 'Arizona', AR: 'Arkansas', CA: 'California', CO: 'Colorado', CT: 'Connecticut', DE: 'Delaware', FL: 'Florida', GA: 'Georgia', HI: 'Hawaii', ID: 'Idaho', IL: 'Illinois', IN: 'Indiana', IA: 'Iowa', KS: 'Kansas', KY: 'Kentucky', LA: 'Louisiana', ME: 'Maine', MD: 'Maryland', MA: 'Massachusetts', MI: 'Michigan', MN: 'Minnesota', MS: 'Mississippi', MO: 'Missouri', MT: 'Montana', NE: 'Nebraska', NV: 'Nevada', NH: 'New Hampshire', NJ: 'New Jersey', NM: 'New Mexico', NY: 'New York', NC: 'North Carolina', ND: 'North Dakota', OH: 'Ohio', OK: 'Oklahoma', OR: 'Oregon', PA: 'Pennsylvania', RI: 'Rhode Island', SC: 'South Carolina', SD: 'South Dakota', TN: 'Tennessee', TX: 'Texas', UT: 'Utah', VT: 'Vermont', VA: 'Virginia', WA: 'Washington', WV: 'West Virginia', WI: 'Wisconsin', WY: 'Wyoming', }

### State Abbreviations Python Dict

Code
state_abbreviations = {'AL': 'Alabama', 'AK': 'Alaska', 'AZ': 'Arizona', 'AR': 'Arkansas', 'CA': 'California', 'CO': 'Colorado', 'CT': 'Connecticut', 'DE': 'Delaware', 'FL': 'Florida', 'GA': 'Georgia', 'HI': 'Hawaii', 'ID': 'Idaho', 'IL': 'Illinois', 'IN': 'Indiana', 'IA': 'Iowa', 'KS': 'Kansas', 'KY': 'Kentucky', 'LA': 'Louisiana', 'ME': 'Maine', 'MD': 'Maryland', 'MA': 'Massachusetts', 'MI': 'Michigan', 'MN': 'Minnesota', 'MS': 'Mississippi', 'MO': 'Missouri', 'MT': 'Montana', 'NE': 'Nebraska', 'NV': 'Nevada', 'NH': 'New Hampshire', 'NJ': 'New Jersey', 'NM': 'New Mexico', 'NY': 'New York', 'NC': 'North Carolina', 'ND': 'North Dakota', 'OH': 'Ohio', 'OK': 'Oklahoma', 'OR': 'Oregon', 'PA': 'Pennsylvania', 'RI': 'Rhode Island', 'SC': 'South Carolina', 'SD': 'South Dakota', 'TN': 'Tennessee', 'TX': 'Texas', 'UT': 'Utah', 'VT': 'Vermont', 'VA': 'Virginia', 'WA': 'Washington', 'WV': 'West Virginia', 'WI': 'Wisconsin', 'WY': 'Wyoming'}

### State Abbreviations (With Territories) JavaScript Object:

Code
const stateAbbreviations = { AL: 'Alabama', AK: 'Alaska', AS: 'American Samoa', AZ: 'Arizona', AR: 'Arkansas', CA: 'California', CO: 'Colorado', CT: 'Connecticut', DE: 'Delaware', DC: 'District Of Columbia', FL: 'Florida', GA: 'Georgia', GU: 'Guam', HI: 'Hawaii', ID: 'Idaho', IL: 'Illinois', IN: 'Indiana', IA: 'Iowa', KS: 'Kansas', KY: 'Kentucky', LA: 'Louisiana', ME: 'Maine', MD: 'Maryland', MA: 'Massachusetts', MI: 'Michigan', MN: 'Minnesota', MS: 'Mississippi', MO: 'Missouri', MT: 'Montana', NE: 'Nebraska', NV: 'Nevada', NH: 'New Hampshire', NJ: 'New Jersey', NM: 'New Mexico', NY: 'New York', NC: 'North Carolina', ND: 'North Dakota', MP: 'Northern Mariana Is', OH: 'Ohio', OK: 'Oklahoma', OR: 'Oregon', PA: 'Pennsylvania', PR: 'Puerto Rico', RI: 'Rhode Island', SC: 'South Carolina', SD: 'South Dakota', TN: 'Tennessee', TX: 'Texas', UT: 'Utah', VT: 'Vermont', VA: 'Virginia', VI: 'Virgin Islands', WA: 'Washington', WV: 'West Virginia', WI: 'Wisconsin', WY: 'Wyoming', }

### State Abbreviations (With Territories) Python Dict

Code
state_abbreviations = {'AL': 'Alabama', 'AK': 'Alaska', 'AS': 'American Samoa', 'AZ': 'Arizona', 'AR': 'Arkansas', 'CA': 'California', 'CO': 'Colorado', 'CT': 'Connecticut', 'DE': 'Delaware', 'DC': 'District Of Columbia', 'FL': 'Florida', 'GA': 'Georgia', 'GU': 'Guam', 'HI': 'Hawaii', 'ID': 'Idaho', 'IL': 'Illinois', 'IN': 'Indiana', 'IA': 'Iowa', 'KS': 'Kansas', 'KY': 'Kentucky', 'LA': 'Louisiana', 'ME': 'Maine', 'MD': 'Maryland', 'MA': 'Massachusetts', 'MI': 'Michigan', 'MN': 'Minnesota', 'MS': 'Mississippi', 'MO': 'Missouri', 'MT': 'Montana', 'NE': 'Nebraska', 'NV': 'Nevada', 'NH': 'New Hampshire', 'NJ': 'New Jersey', 'NM': 'New Mexico', 'NY': 'New York', 'NC': 'North Carolina', 'ND': 'North Dakota', 'MP': 'Northern Mariana Is', 'OH': 'Ohio', 'OK': 'Oklahoma', 'OR': 'Oregon', 'PA': 'Pennsylvania', 'PR': 'Puerto Rico', 'RI': 'Rhode Island', 'SC': 'South Carolina', 'SD': 'South Dakota', 'TN': 'Tennessee', 'TX': 'Texas', 'UT': 'Utah', 'VT': 'Vermont', 'VA': 'Virginia', 'VI': 'Virgin Islands', 'WA': 'Washington', 'WV': 'West Virginia', 'WI': 'Wisconsin', 'WY': 'Wyoming'}
═══ § ═══