✦ Module Challenge · Mini Projects

Step 1 of 4

Personal Expense Tracker

Build a small program that organizes expenses, calculates totals, and creates a JSON report.

1234

Review expenses

Print each expense category and amount.

Loop through the list of expense dictionaries.

↳

Ask Sloby for a hint or check whether your current code meets this step goal.

Python Playground

Loading Python runtime…

Your code stays in this browser tab while you move between challenge steps.

expense_tracker.pyPython
OutputWaiting for Python
The browser runtime is loading. You can still edit the example code.

Pyodide runs Python in a browser Web Worker. It is stopped and restarted if code keeps running. Browser execution is not a complete security boundary; do not enter secrets or rely on it for untrusted code isolation.

Sloby, the Python AI Tutor mascot

Sloby AI Mentor

Ask for a hint or code review

Sloby guides your reasoning and never changes your code.