7. Counting and Finding

.count(), .index() and in

beats.count(1) counts how many times 1 appears. beats.index(5) tells you where the first 5 is. And b in beats checks whether it's there at all.

🎯 0/4 · 🥁 0 solved · 🏅 0

Challenge A:beats = [1, 1, 3, 5]. Play the kick on beats, and the crash on beat beats.count(1).

Goal
crash
kick
1234
5678