main python-basics/lessons/10-project-budget-tracker

README.md

Lesson 10: Project: budget tracker

This lesson covers project: budget tracker. You'll read a short explanation, try three small exercises and finish with a quiz.

Full lesson: https://glibcode.net/courses/python-basics/lessons/10

Files

  • budget.py: the course project: a budget tracker that saves to JSON

Tip: f-strings can show the expression too: print(f"{total=}").

Tip: Use a virtual environment per project: python3 -m venv .venv.

Tip: Run python3 -i file.py to stay in the interpreter after the program ends and poke at the variables.

Run it

python3 budget.py

Exercises

See exercises.md. Ask in the forum once you've tried.