orders_with_names(api) where api is a base URL: GET /orders (list of {id, user_id, amount}) and /users (list of {id, name}), then return the orders enriched with a user_name field by joining on user_id — build a user-id → name dict first, don't nest loops.orders_with_names(base)
orders each carrying user_name
A dict lookup joins the two payloads in O(n).
users_by_id = {u["id"]: u["name"] for u in users}.
Enrich with dict unpacking or item assignment.