Total the Whole Inventory
Loop over a dictionary of dictionaries instead of reading one hardcoded key.
A beginner Linux challenge worth 3 points. Solve it hands-on in a real Linux environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: /home/labuser/lab/inventory.py should total a small shop's inventory value, but it only reads the "widget" entry directly and never multiplies by quantity.
Task: Fix inventory.py so it loops over every item, multiplies price by quantity, and writes the grand total 94.96 to total.txt. Run check when ready.