Write summarize_orders(orders). Each order has quantity and unit_price. Return a dictionary with total_units and revenue; an empty list returns zero for both values.
Optional website statistics, Google Analytics/Clarity and advertising (Meta/Google) help measure and support this free site. Your choice does not limit learning. Privacy policy.
These services may use cookies and receive browsing and device information. Change your choice later from the Privacy Policy page.