practicepython.in
python exercises
starting python
Traceback (most recent call last):
  File "stock.py", line 10, in <module>
    print(total_quantity(["item,quantity", "bolts,120", "nuts,80"]))
          ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "stock.py", line 6, in total_quantity
    total += int(quantity)
             ~~~^^^^^^^^^^
ValueError: invalid literal for int() with base 10: 'quantity'
your_code.py