on_orangeline(station) that returns True if the station is on the Orange Line

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

write a function

on_orangeline(station) that returns True if the station is on the Orange Line

use python

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.
Transcribed Image 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.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY