Tempo Catalog Warmup

Count tracks, total runtime, genre mix, and top performer in a music catalog using pure Python loops.

You're an analyst at Tempo, a music streaming startup. The label pitch is Friday, and the team needs the prototype catalog sanity-checked before it ships.

The catalog is already in your notebook as a list of Python dicts — no pandas yet. Five short steps, ~30 minutes. The last step wraps the logic in a reusable function.

What you'll practice: lists, dicts, for-loops, conditionals, function design.

You'll practice

Python ProgrammingLists and DictionariesLoops and ConditionalsFunctions
Loading kernel…
1

Meet the catalog

40 XP

The prototype catalog is already in your notebook as a list of dicts called songs. Get oriented: how many songs are in it? Use len() and assign the result to num_songs.

Done when: num_songs holds the catalog's length.

<details> <summary>Show the catalog (10 songs)</summary>
titleartistgenreduration_secplays
Midnight DriveLuna Parkpop215124000
CoastlineThe Reverbsindie19845000
Engine RoomCatalystrock232156000
FernsQuiet Animalsindie18732000
Borrowed TimeLuna Parkpop244210000
Wild PulseCatalystrock20198000
HalogenModularelectronic219132000
Stay Up LateJune Hillspop17689000
Slow RotationQuiet Animalsindie26378000
HometownJune Hillspop20945000
</details>