5. Changing State

Objects that remember

An object's attributes are its state — muted or not, how loud, how many taps. Methods change the state, and the object remembers it for next time.

🎯 0/4 · 🥁 0 solved · 🏅 0

Challenge A:Tracks start with self.muted = False. Add def mute(self): self.muted = True, and make play() only play when not muted. Mute the snare, then play both.

Goal
kick
1234
5678