LLD - Design — Online Shopping Cart
What will be the output of this code snippet?
inventory = {'pen': 20, 'notebook': 15}
item = 'pen'
print(inventory.get(item, 0))
print(inventory.get('pencil', 0))
