3. Lots of Objects

Lists of objects

Objects fit in lists like anything else. Loop over a list of tracks and call t.play() on each one — every object does its own thing.

🎯 0/4 · 🥁 0 solved · 🏅 0

Challenge A:tracks = [Track(kick, [1, 5]), Track(snare, [3, 7])]. Loop over tracks and play each one.

Goal
snare
kick
1234
5678