4. Functions and Functions

Calling and passing functions

Functions can call other functions, and take functions as inputs — twice(kick, 1) hands the kick command itself to twice.

🎯 0/4 · 🥁 0 solved · 🏅 0

Challenge A:def backbeat(): snare([2, 4]). def rock(): kick([1, 3]) and backbeat(). Call rock().

Goal
snare
kick
1234