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.
Challenge A:def handle(request): if request["action"] == "play", play kit[request["drum"]](request["beats"]) and return {"ok": True}. Send it both requests.