Looping over a list
A for loop can walk through any list, not just range(). for b in [1, 4, 6]: runs once with b = 1, once with 4, once with 6.
🔢 Math connection: snare(b + 2) follows a rule: "add 2". Every snare lands 2 beats after its kick, a number pattern. RockBlocks Math: Grade 4 · Number and Shape Patterns ↗
Challenge A:Loop through the list [1, 4, 6] and play the kick on each beat.