Skip to course content
Free course

Python Foundations / Module 1 / Applied Checkpoint: Build a Daily-Expense Summary

Module 1 lesson

Applied Checkpoint: Build a Daily-Expense Summary

Unit ID: M01-U08 Estimated active time: 30-45 minutes

Your task

Create a short Python notebook that summarises fictional expenses for one learning day.

Use these supplied values:

  • Breakfast: 120 Indian rupees
  • Travel: 250 Indian rupees
  • Lunch: 180 Indian rupees

Your notebook must calculate:

  • the total cost;
  • the average cost across the three items; and
  • the difference between the most expensive supplied item, travel, and the least expensive supplied item, breakfast.

Do not add personal financial information. Use only the supplied fictional values.

Required notebook structure

1. Purpose

Add a Markdown cell with a clear title and one sentence explaining the task.

2. Inputs

Create one clearly named value for each expense. Add a comment stating that the amounts are fictional and use Indian rupees.

3. Calculations

Create clearly named values for the total, average, and difference. Keep the calculations separate from the printed results.

4. Results

Print each result with a label and unit. A reader should not see an unexplained number.

5. Review note

In a Markdown cell, answer:

  1. Which item is the largest?
  2. Is the total larger than every individual item?
  3. Is the average between the smallest and largest item?
  4. What did you change after testing?

Predict first

Before running the calculation, write down your expected total. You may calculate it on paper. Then run the code and compare the two results.

Required test

When you think the notebook is finished:

  1. Save it.
  2. Restart the kernel.
  3. Clear old outputs if available.
  4. Run all cells from top to bottom.
  5. Confirm there is no error.
  6. Confirm that the output still matches your prediction.

Self-review rubric

CriterionNot yetMeets
InputsA supplied value is missing, incorrect, or unclearAll three supplied values have clear names and units
OrderA value is used before it is createdInputs, calculations, and outputs run in dependency order
CalculationsA required result is missing or incorrectTotal, average, and difference are correct
ReadabilityNames or output labels are unclearNames, comments, spacing, and labels make the program easy to read
ExplanationThe review note is missing or unsupportedAll four review questions are answered from the output
ReproducibilityThe notebook depends on old state or fails after restartRestart-and-run-all completes successfully

Mark the checkpoint complete only when every criterion meets the standard.

After you finish

Compare your program with the reference answer only after completing your own clean rerun. Your code does not need to use identical names, but the meaning, calculations, output, and reproducibility should agree.