Code Room
Code reviewHardcr-g485
Subject Blocking ioLevel Senior–Staff~22 minCommon in Concurrency interviewsIndustries Software development, Technology

Question

Review this Python asyncio handler.

What a strong answer looks like

Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.

Talk through your review
Code to reviewpython
import requests async def fetch_prices(symbols):    out = {}    for s in symbols:        resp = requests.get(f"https://api.example.com/price/{s}")  # blocking        out[s] = resp.json()["price"]    return out
Run or narrate your approach, then ask the coach.