< CS101
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".
Write code to print the row for the name "Atticus"
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.
Write code to print the rows where the rank is less than 10 (i.e. <).
Write code to print the rows where the rank is greater than 950.
Each click of a Run button saves that code on the computer running the browser. The button below retrieves the all code exercises listed to the right of the button.
count 4 : table-1-ex1 table-1-ex2 table-1-ex3 table-1-ex4
(code appears here)