Codington
0 of 6 problems solved • 0%

Exercise prompt

Predict the Stock Lookup

A stock clerk looks up an item that has never been recorded. Follow the return value and the dictionary's contents separately.

Predict the output

What quantity and membership result does the clerk see?

stock = {"tea": 4} count = stock.get("milk", 0) print(count, "milk" in stock)
What will this code print?