PROJECT4
Completed
Project 4: Build an Expense Report Project 4: Build an Expense Report

Build a multi-file expense report app using CSV reading, exceptions, dictionaries, functions, and text-file writing.

Project 4: Build an Expense Report

Sounds useful?

Jump into the interactive version.

No setup. No account. Just Python.

Interactive Python lesson

Project 4: Build an Expense Report

Finish Beginner Python by building a complete multi-file data-processing application. You will load a read-only CSV file, transform valid expense rows, calculate overall and category totals, handle predictable errors, and generate a reliable plain-text report.

What you will practice:

  • Load CSV rows with csv.DictReader and convert valid amounts
  • Handle ValueError and FileNotFoundError at clear boundaries
  • Calculate overall and per-category totals with accumulators
  • Separate loading, calculation, report building, and application coordination
  • Replace a text report safely with one output item per line
  • Connect several Python modules into one complete program

The starter supplies the file-reading and file-writing syntax while leaving the application logic for you to build. CSV remains read-only input, and the generated report is an ordinary UTF-8 text file.

> Start now 8 cards · about 3 min

Ready to practice this in the browser?

> Play now