A dictionary-driven drum machine
Combine a kit dictionary, a dictionary of patterns and functions: play_all, mute and solo — the controls of a real drum machine.
Challenge A:Write def play_all(machine): that plays every x of every pattern, then call it on machine.