BuildlyBuildly
DashboardExercisesProfileHelp

Steps

0 / 5
0 / 300 XP

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.

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.

Show the catalog (10 songs)
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
Sarah

Ask Sarah

PM at Tempo (music streaming startup)

Currently on: Step 1. Meet the catalog
Sarah

Hey, I'm Sarah — PM at Tempo (music streaming startup). I'll be working with you on this scenario. Ask me anything — about the data, the brief, the current step, or your code. I won't dump the answer on you, but I'll absolutely point you in the right direction.