Google babynames exercise

Data file: baby1990_en.html
Data file: baby1996_en.html
Data file: baby2002_en.html

Given a file name for baby.html, returns a list starting with the year string followed by the name-rank strings in alphabetical order. [‘2006’, ‘Aaliyah 91’, Aaron 57’, ‘Abagail 895’, ‘ …]

Here’s what the html looks like in the baby.html files:

<h3 align=”center”>Popularity in 1990</h3>

<tr align=”right”><td>1</td><td>Michael</td><td>Jessica</td>

<tr align=”right”><td>2</td><td>Christopher</td><td>Ashley</td>

<tr align=”right”><td>3</td><td>Matthew</td><td>Brittany</td>

Activity: 4 ActiveCode (ret04_en)

Creative Commons License This work is licensed under a Creative Commons Attribution 4.0 International License.

Original exercise can be found at Google Baby Names Exercise.

You have attempted 1 of 3 activities on this page