10. Functions with Inputs

Function parameters

Your functions can take inputs too, just like kick(1). def hit(b): means hit takes one input, and inside the function it's called b.

🔢 Math connection: In rock(start), start is the independent variable: the beats it plays depend on it. RockBlocks Math: Grade 6 · Independent and Dependent Variables ↗

🎯 0/4 · 🥁 0 solved · 🏅 0

Challenge A:Make def hit(b): that plays the kick on b. Then call hit(1) and hit(5).

Goal
kick
1234
5678