@@ -167,7 +167,7 @@ as dictionaries like this:
|
|||||||
It would be a shame to do all of that work and then do nothing with
|
It would be a shame to do all of that work and then do nothing with
|
||||||
the data.
|
the data.
|
||||||
|
|
||||||
In this exercise, you task is this: write a program to answer the
|
In this exercise, your task is this: write a program to answer the
|
||||||
following three questions:
|
following three questions:
|
||||||
|
|
||||||
1. How many bus routes exist in Chicago?
|
1. How many bus routes exist in Chicago?
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ into 4 separate `append()` operations.
|
|||||||
|
|
||||||
class RideData(collections.abc.Sequence):
|
class RideData(collections.abc.Sequence):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
# Each value is a list with all of the values (a column)
|
# Each value is a list with all the values (a column)
|
||||||
self.routes = []
|
self.routes = []
|
||||||
self.dates = []
|
self.dates = []
|
||||||
self.daytypes = []
|
self.daytypes = []
|
||||||
|
|||||||
Reference in New Issue
Block a user