return values
return sends a value back out of a function. Then you can use the function's answer anywhere you'd use a number — even inside another command.
🔢 Math connection: (m - 1) * 4 + 1 is an expression you write once and reuse to find where any measure starts. RockBlocks Math: Grade 6 · Writing Expressions ↗
Challenge A:Make def after(b): that returns b + 1. Play the kick on 1 and the snare on after(1).