Python

Format a Report

Building Reports

Create generate_expense_report(expenses) that returns a formatted string with:

  • Header line
  • Each expense on its own line
  • Total at the bottom
script.py
Loading PYTHON engine...
Downloading Python… (one-time, ~10 MB)

Downloading Python… (one-time, ~10 MB)

This runs entirely in your browser and is cached for next time.