def get_station_info(station_id: int, stations: List["Station"]) -> list: """Return a list containing the following information from stations about the station with id number station_id: - station...

def get_station_info(station_id: int, stations: List["Station"]) -> list: """Return a list containing the following information from stations about the station with id number station_id: - station name (str) - number of bikes available (int) - number of docks available (int) - whether or not the station has a kiosk (bool) (in this order)

If station_id is not in stations, return an empty list.

>>> get_station_info(7090, SAMPLE_STATIONS) ['Danforth Ave / Lamb Ave', 4, 10, True] >>> get_station_info(7571, SAMPLE_STATIONS) ['Highfield Rd / Gerrard St E - SMART', 14, 5, False] """
Nov 01, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here