A classmate writes code that stores inventory items and thei…
Questions
A clаssmаte writes cоde thаt stоres inventоry items and their prices using two separate lists, one for item names and one for prices, instead of a single dictionary. Explain at least one problem this approach could cause, and describe how a dictionary would solve it.