Boston Subway The Boston Subway e has four different colored trains, some of which have multiple routes. We have simplified the routes so that each train has a single route with the following stations...


write a function


get_intersecting_station(line_one, line_two) where line_one and line_two are the colors of the lines. This function should return the name of the station where the two lines intersect. Recall from our simplification, there will be only one. If there is no intersecting station, return None


use python


Boston Subway<br>The Boston Subway e has four different colored trains, some of which have multiple<br>routes. We have simplified the routes so that each train has a single route with the<br>following stations (in order from north to south) and that each colored line intersects<br>with another colored line at exactly one station.<br>• Red Line: Alewife, Davis, Porter, Harvard, Central, Kendall/MIT, Charles/MGH,<br>Downtown Crossing, South Station, Broadway, Andrew, JFK/UMass<br>• Orange Line: Oak Grove, Malden Center, Wellington, Assembly, Sullivan Square,<br>Community College, North Station, Haymarket, State, Downtown Crossing,<br>Chinatown, Tufts Medical Center, Back Bay, Mass Avenue, Ruggles, Roxbury<br>Crossing, Jackson Square, Stony Brook, Green Street, Forest Hills<br>• Blue Line: Wonderland, Revere Beach, Beachmont, Suffolk Downs, Orient Heights,<br>Wood Island, Airport, Maverick, Aquarium, State<br>• Green Line: Haymarket, Government Center, Park Street, Boylston, Arlington,<br>Copley, Haynes Convention Center, Kenmore, Blandford Street, Boston University<br>East, Boston University Central, Boston University West, Saint Paul Street,<br>Pleasant Street, Babcock Street, Packards Corner, Harvard Avenue, Griggs Street,<br>Allston Street, Warren Street, Washington Street, Sutherland Road, Chiswick Road,<br>Chestnut Hill Avenue, South Street, Boston College<br>Station names must match exactly (unforgiving about upper/lowercase and<br>abbreviations) with the exception of names that have a

Extracted text: Boston Subway The Boston Subway e has four different colored trains, some of which have multiple routes. We have simplified the routes so that each train has a single route with the following stations (in order from north to south) and that each colored line intersects with another colored line at exactly one station. • Red Line: Alewife, Davis, Porter, Harvard, Central, Kendall/MIT, Charles/MGH, Downtown Crossing, South Station, Broadway, Andrew, JFK/UMass • Orange Line: Oak Grove, Malden Center, Wellington, Assembly, Sullivan Square, Community College, North Station, Haymarket, State, Downtown Crossing, Chinatown, Tufts Medical Center, Back Bay, Mass Avenue, Ruggles, Roxbury Crossing, Jackson Square, Stony Brook, Green Street, Forest Hills • Blue Line: Wonderland, Revere Beach, Beachmont, Suffolk Downs, Orient Heights, Wood Island, Airport, Maverick, Aquarium, State • Green Line: Haymarket, Government Center, Park Street, Boylston, Arlington, Copley, Haynes Convention Center, Kenmore, Blandford Street, Boston University East, Boston University Central, Boston University West, Saint Paul Street, Pleasant Street, Babcock Street, Packards Corner, Harvard Avenue, Griggs Street, Allston Street, Warren Street, Washington Street, Sutherland Road, Chiswick Road, Chestnut Hill Avenue, South Street, Boston College Station names must match exactly (unforgiving about upper/lowercase and abbreviations) with the exception of names that have a "/" in them. These stations can be referred to be either one. For example, both "Kendall" and "MIT" refer to the same station. Note: The simplification of our train lines is such that each line intersects with other lines in exactly one station. But not all lines intersect every other line.
Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here