solution.py
Python 3
Reset
# StockKeeper — custom exception class InsufficientStockError(Exception): pass def remove_stock(inventory, sku, qty): pass # TODO: implement # TODO: demonstrate success and a caught InsufficientStockError inventory = {"SKU-100": 5, "SKU-200": 12}
Run
Ctrl+⏎
AI Review
Console