len(), .count() and .find() on text
Text has its own tools: len(word) counts its letters, word.count("l") counts one letter, and word.find("x") tells you where the first one is (or -1 if it's missing).
Lesson 1: every "g" in a word becomes a kick.
pattern = "go..go.."
for i, ch in enumerate(pattern):
if ch == "g":
kick(i + 1)Challenge A:word = "boom". Play the kick on beat len(word).