8. A Library of Grooves

Functions stored in dictionaries and lists

Functions are values: store them in a dictionary — styles = {"rock": rock, "funk": funk} — and pick one by name, or run a list of them in order.

🎯 0/4 · 🥁 0 solved · 🏅 0

Challenge A:rock() and funk() are ready. Make styles = {"rock": rock, "funk": funk} and call styles["funk"]().

Goal
snare
kick
1234
5678