9. Dictionary Tricks

len, sorted keys, merging and swapping

len(song) counts the keys, sorted(song) lists the keys in order, a loop can merge one dictionary into another, and a, b = b, a works on dictionary values too.

🎯 0/4 · 🥁 0 solved · 🏅 0

Challenge A:Play the crash on beat len(song) and the snare part.

Goal
crash
snare
1234
5678