Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- West = ('AK', 'AZ', 'AR', 'CA', 'CO', 'HI', 'ID', 'IA', 'KS', 'LA', 'MN', 'MO', 'MT', 'NE', 'NV', 'NM', 'ND', 'OK', 'OR',
- 'SD', 'TX', 'UT', 'WA', 'WY')
- East = ('AL', 'CT', 'DE', 'FL', 'GA', 'IL', 'IN', 'KY', 'ME', 'MD', 'MA', 'MI', 'MS', 'NH', 'NJ', 'NY', 'NC', 'OH',
- 'PA', 'RI', 'SC', 'TN', 'VT', 'VA', 'WV', 'WI')
- timezones = {"AK": "(Alaska Daylight Time)", "AZ": "(Mountain)", "AR": "(Central)", "CA": "(Pacific)", "CO": "(Mountain)",
- "HI": "(Hawaii-Aleutian GMT-10)", "ID": "(Mountain or Pacific, google the city)", "IA": "(Central)",
- "KS": "(Majority Central, some Mountain, google the city)",
- "LA": "(Central)", "MN": "(Central)", "MO": "(Central)", "MT": "(Mountain)",
- "NE": "(Majority Central, some Mountain, google the city)",
- "NV": "(Pacific)", "NM": "(Mountain)", "ND": "Majority Central, some Mountain, google the city",
- "OK": "(Central)",
- "OR": "(Majority Pacific, some Mountain - google the city)",
- "SD": "(Central(east)Mountain(west))",
- "TX": "(Majority Central, some Mountain (El Paso etc), google the city)",
- "UT": "(Mountain)", "WA": "(Pacific)",
- "WY": "(Mountain)", "AL": "(Central)", "CT": "(Eastern)", "DE": "(Eastern)",
- "FL": "(Eastern and Central, google the city)",
- "GA": "(Eastern)", "IL": "(Central)", "IN": "(Eastern and Central)",
- "KY": "(Eastern and Central, google the city)", "ME": "(Eastern)",
- "MD": "(Eastern)", "MA": "(Eastern)", "MI": "(Eastern and Central, google the city)",
- "MS": "(Central)", "NH": "(Eastern)",
- "NJ": "(Eastern)", "NY": "(Eastern)", "NC": "(Eastern)", "OH": "(Eastern)", "PA": "(Eastern)",
- "RI": "(Eastern)", "SC": "(Eastern)", "TN": "(Central and Eastern, google the city)",
- "VT": "(Eastern)", "VA": "(Eastern)",
- "WV": "(Eastern)", "WI": "(Central)"}
- multiple_timezone_states = ('ID', 'OR', 'KS', 'NE', 'ND', 'SD', 'TX', 'FL', 'IN', 'KY', 'MI', 'TN', 'AK')
- def main():
- question = input("\nEnter State: ").upper()
- if question in East and multiple_timezone_states:
- print("\nEast: Hudson")
- state_reenter()
- elif question in East and not multiple_timezone_states:
- print("\nTimezone: " + timezones[question])
- elif question in West and multiple_timezone_states:
- print("\nWest: Rochelle")
- state_reenter()
- elif question in West and not multiple_timezone_states:
- print("\nTimezone: " + timezones[question])
- else:
- print("\nCannot find state, check entry and try again")
- print("Please put abbreviations in UPPERCASE for example - AK or AZ etc ")
- loop = 0
- while True:
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement