For these exercises, you write code to print some rows from a table. All of the problems here use the baby-2010.csv data as in lecture. Recall that the fields in the baby data are: "name", "rank", "gender", "year".
1. Write code to print the row for the name "Atticus"
|
2. Write code to print the rows for the name "River". In this case, there are two such rows, but the same basic code pattern as for question 1 works. This shows how the loop really is just testing every row.
|
3. Write code to print the rows where the rank is less than 10 (i.e. <).
|
4. Write code to print the rows where the rank is greater than 950.
|