Record what you spend, one line at a time, and get a report that totals it by category. The data lives in a CSV file, so you can also open it in a spreadsheet, which is where many real data projects begin.
More lessons in Complete Python Programming