9. Building Patterns from Text

Growing text in a loop

Start with empty text, p = "", and add a character each time around a loop with +=. Once the pattern is built, play it.

🎯 0/4 · 🥁 0 solved · 🏅 0

Challenge A:p = "". Loop b over range(8), adding "x" if b % 2 == 0 else ".". Then play the hihat on every x.

Goal
hihat
1234
5678