Language: Python. The pull request has one bug. You get three tries to find the line, then a short debrief.
The cart was a plain dictionary passed around between functions. It is now a small class: each visitor gets a Cart with their own items, and add and total keep the logic in one place.
Codetrap needs JavaScript: the code review happens in your browser.