5. f-strings

Putting values inside text

Put an f before the quotes and anything in { } gets worked out and dropped into the text: f"kick on beat {b}". It's the easiest way to build a message — or a pattern.

🎯 0/4 · 🥁 0 solved · 🏅 0

Challenge A:Loop b through [1, 5]: play the kick on b and print(f"kick on beat {b}").

Goal
kick
1234
5678