{'name': 'Pen', 'stock': 4}. Write in_stock_names(products) returning the names of products whose stock is greater than zero, in order, with one comprehension.in_stock_names([{'name': 'Pen', 'stock': 4}, {'name': 'Ink', 'stock': 0}])['Pen']
Ink has zero stock.
Filter on p['stock'] > 0.
Map to p['name'].