Home / Expert Answers / Computer Science / python-code-nbsp-the-lower-48-states-have-the-following-time-zones-eastern-central-mountain-pa794

(Solved): Python code   The lower 48 states have the following time zones: Eastern, Central, Mountain, ...



Python code

 

The lower 48 states have the following time zones: Eastern, Central, Mountain, and Pacific. Create four sets representing eac

The lower 48 states have the following time zones: Eastern, Central, Mountain, and Pacific. Create four sets representing each of the time zones. BE SURE THAT Eastern, Central, ETC ARE SPELLED WITH A CAPITAL FIRST LETTER. Otherwise the autograder won't work. You can copy/paste this into your Python code: Eastern = set(["Connecticut", "Delaware", "Georgia", "Maine", "Maryland", "Massachusetts", "New Hampshire", "New Jersey", "New York", "North Carolina", "Ohio", "Pennsylvania", "Rhode Island", "South Carolina", "Vermont", "Virginia", "West Virginia", "Florida", "Indiana", "Kentucky", "Michigan", "Tennessee"]) Central = set(["Alabama", "Arkansas", "Illinois", "lowa", "Louisiana", "Minnesota", "Mississippi", "Missouri", "Oklahoma", "Wisconsin", "Florida", "Indiana", "Kansas", "Kentucky", "Michigan", "Nebraska", "North Dakota", "South Dakota", "Tennessee", "Texas"]) Mountain = set(["Arizona", "Colorado", "Montana", "New Mexico", "Utah", "Wyoming", "Idaho", "Kansas", "Nebraska", "North Dakota", "Oregon", "South Dakota", "Texas"]) Pacific = set(["California", "Washington", "Idaho", "Nevada", "Oregon"]) It is your job to use the sets given above to create a computer program that will take two time zones and return the states that are in both time zones. Please enter time zone 1: Eastern Please enter time zone 2: Central \( \{ \) 'Tennessee', 'Florida', 'Michigan', 'Kentucky', 'Indiana' \( \} \)


We have an Answer from Expert

View Expert Answer

Expert Answer


The required code for the python program time_zones.py has been provided
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe