This page has nothing switched on. No layout, no colour, no help. Just text.
Writing code with no IDE is a lot like reading this. It works. It's just miserable.
Switch on the IDE
David Haxton · davidhaxton.co.uk
subTotal
expected ':'
Line 3. The red block shows where.
Watch. In IDLE, the same values appear in the Locals panel.
David Haxton · davidhaxton.co.uk. A teaching model of an IDE: the code here runs on a tiny interpreter built into this page, which only understands what basket.py needs. © David Haxton 2026. All rights reserved. Not for reuse in schools or tuition without permission.