9. Requests and Responses

How a server thinks

A server waits for requests — dictionaries saying what someone wants — and sends back responses. Your handle(request) function is a tiny server.

🎯 0/4 · 🥁 0 solved · 🏅 0

Challenge A:def handle(request): if request["action"] == "play", play kit[request["drum"]](request["beats"]) and return {"ok": True}. Send it both requests.

Goal
snare
kick
1234
5678