forked from talkpython/100daysofcode-with-python-course
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b2ef9c7
commit e76b4bd
Showing
2 changed files
with
109 additions
and
3 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
#!python3 | ||
|
||
us_state_abbrev = { | ||
'Alabama': 'AL', | ||
'Alaska': 'AK', | ||
'Arizona': 'AZ', | ||
'Arkansas': 'AR', | ||
'California': 'CA', | ||
'Colorado': 'CO', | ||
'Connecticut': 'CT', | ||
'Delaware': 'DE', | ||
'Florida': 'FL', | ||
'Georgia': 'GA', | ||
'Hawaii': 'HI', | ||
'Idaho': 'ID', | ||
'Illinois': 'IL', | ||
'Indiana': 'IN', | ||
'Iowa': 'IA', | ||
'Kansas': 'KS', | ||
'Kentucky': 'KY', | ||
'Louisiana': 'LA', | ||
'Maine': 'ME', | ||
'Maryland': 'MD', | ||
'Massachusetts': 'MA', | ||
'Michigan': 'MI', | ||
'Minnesota': 'MN', | ||
'Mississippi': 'MS', | ||
'Missouri': 'MO', | ||
'Montana': 'MT', | ||
'Nebraska': 'NE', | ||
'Nevada': 'NV', | ||
'New Hampshire': 'NH', | ||
'New Jersey': 'NJ', | ||
'New Mexico': 'NM', | ||
'New York': 'NY', | ||
'North Carolina': 'NC', | ||
'North Dakota': 'ND', | ||
'Ohio': 'OH', | ||
'Oklahoma': 'OK', | ||
'Oregon': 'OR', | ||
'Pennsylvania': 'PA', | ||
'Rhode Island': 'RI', | ||
'South Carolina': 'SC', | ||
'South Dakota': 'SD', | ||
'Tennessee': 'TN', | ||
'Texas': 'TX', | ||
'Utah': 'UT', | ||
'Vermont': 'VT', | ||
'Virginia': 'VA', | ||
'Washington': 'WA', | ||
'West Virginia': 'WV', | ||
'Wisconsin': 'WI', | ||
'Wyoming': 'WY', | ||
} | ||
|
||
|
||
states_list = ['Oklahoma', | ||
'Kansas', | ||
'North Carolina', | ||
'Georgia', | ||
'Oregon', | ||
'Mississippi', | ||
'Minnesota', | ||
'Colorado', | ||
'Alabama', | ||
'Massachusetts', | ||
'Arizona', | ||
'Connecticut', | ||
'Montana', | ||
'West Virginia', | ||
'Nebraska', | ||
'New York', | ||
'Nevada', | ||
'Idaho', | ||
'New Jersey', | ||
'Missouri', | ||
'South Carolina', | ||
'Pennsylvania', | ||
'Rhode Island', | ||
'New Mexico', | ||
'Alaska', | ||
'New Hampshire', | ||
'Tennessee', | ||
'Washington', | ||
'Indiana', | ||
'Hawaii', | ||
'Kentucky', | ||
'Virginia', | ||
'Ohio', | ||
'Wisconsin', | ||
'Maryland', | ||
'Florida', | ||
'Utah', | ||
'Maine', | ||
'California', | ||
'Vermont', | ||
'Arkansas', | ||
'Wyoming', | ||
'Louisiana', | ||
'North Dakota', | ||
'South Dakota', | ||
'Texas', | ||
'Illinois', | ||
'Iowa', | ||
'Michigan', | ||
'Delaware'] |