3. Split into Words

.split()

"boom tap boom".split() cuts text into a list of words. Give it a separator to split on something else: "1,3,5".split(",").

🎯 0/4 · 🥁 0 solved · 🏅 0

Challenge A:words = "boom tap boom tap".split(). Loop with enumerate: "boom" plays the kick on i + 1, anything else the snare.

Goal
snare
kick
1234