Reading an error message
Most bugs are tiny: a misspelled name or a missing bracket. Run the code, read the error — it tells you the line and often the fix — then correct it.
Lesson 2: fix an else in the wrong place.
for b in range(1, 9):
if b % 2 == 0:
snare(b)
else:
kick(b)Challenge A:This should play the kick on 1 and 3, but there's a typo. Run it, read the error, and fix it.