Let's combine everything: build a dictionary, then loop over it to produce a report.
You're managing a small warehouse inventory that maps each item name to its quantity in stock.
Your tasks
1. Create a dict named inventory with these item → quantity pairs:
"bolts" → 120
"nuts" → 80
"washers" → 200
2. Loop over inventory using .items()
3. For each item, print a line in the format "Item: NAME, Qty: NUMBER" (for example, Item: bolts, Qty: 120)
Expected output
Item: bolts, Qty: 120
Item: nuts, Qty: 80
Item: washers, Qty: 200
Constraints
- Build the dict exactly as listed, in that order
- Use a
for loop with .items()
- Convert the quantity to a string with
str(...) before joining with +
- No external libraries