2. Keyword Inputs

Calling with input names

You can name the inputs when you call a function: pattern(drum=snare, beats=[2, 4]). Named inputs can go in any order, and skip the ones with defaults.

🎯 0/4 · 🥁 0 solved · 🏅 0

Challenge A:def pattern(drum, beats): drum(beats). Call pattern(drum=snare, beats=[2, 4]).

Goal
snare
1234