From a053fa120ad80756e74f306b27813fc0145bd58a Mon Sep 17 00:00:00 2001 From: David Beazley Date: Wed, 31 Jul 2024 10:31:35 -0500 Subject: [PATCH] Added solutions for ex2.2 --- Exercises/soln2_2.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Exercises/soln2_2.md b/Exercises/soln2_2.md index 788e5ca..e00c7a1 100644 --- a/Exercises/soln2_2.md +++ b/Exercises/soln2_2.md @@ -18,6 +18,15 @@ maps the route name to the total ride count for that route. A `Counter` object example, dictionaries of sets, nested dictionaries, etc. You might need to do this to answer questions 3 and 4. +Even though no code is provided, here are some answers to the questions +so that you can check your work: +1. How many bus routes exist in Chicago? (Answer: 181) + +2. How many people rode the number 22 bus on February 2, 2011? (Answer: 5055) + +3. What is the total number of rides taken on each bus route? (Answer: for the top three routes, [('79', 133796763), ('9', 117923787), ('49', 95915008)]) + +4. What five bus routes had the greatest ten-year increase in ridership from 2001 to 2011? (Answer: [('15', 2732209), ('147', 2107910), ('66', 1612958), ('12', 1612067), ('14', 1351308)]) [Back](ex2_2.md)