
Understand the course learning journey, the expense-tracker project and the role of independent code review and testing.
Learning objective: Distinguish inline suggestions, conversational assistance and tool-executing assistance; keep the developer responsible for accepted changes.
Learning objective: Create a virtual environment, select the correct interpreter in VS Code and install the course development dependencies with python -m pip.
Learning objective: Sign in through the supported editor flow, confirm access and locate suggestion and chat controls without assuming every plan exposes identical features.
Learning objective: Run the supplied application skeleton and initial pytest smoke test; diagnose an incorrect interpreter or missing dependency.
Learning objective: Ask Copilot for a short helper, read the diff, run it against a known example and explain why the change is acceptable.
Learning objective: Review strings, integers, booleans, lists and dictionaries and predict the result of a small code sample.
Learning objective: Define a small function with one responsibility and distinguish returned values from printed output.
Learning objective: Inspect branching and iteration for missing cases, off-by-one mistakes and unnecessarily dense expressions.
Learning objective: Catch specific expected failures and avoid broad exception handling that hides programming errors.
Learning objective: Organize imports and represent an expense record while recognizing that annotations do not automatically validate runtime input.
Learning objective: Parse decimal strings with Decimal, reject non-finite values and use calendar-date objects instead of ambiguous date strings.
Learning objective: Set up Git, a useful .gitignore and a first commit that excludes environments, personal expense files and credentials.
Learning objective: Inspect staged and unstaged changes and identify unrelated edits or generated files.
Learning objective: Create a feature branch and commit one logical change with a useful message.
Learning objective: Publish a practice branch and describe the requirement, implementation and evidence from tests.
Learning objective: Read both intended changes, resolve the conflict deliberately and rerun the affected tests.
Learning objective: Use a restore workflow for uncommitted work and a revert commit for shared history, checking the target before acting.
Learning objective: Describe add, list, filter, summarize and delete behaviors with observable success and failure examples.
Learning objective: Specify identifiers, dates, positive amounts, categories and descriptions with clear input limits and error behavior.
Learning objective: Separate CLI parsing, validation, business logic and SQLite persistence so each part can be reviewed and tested.
Learning objective: Plan small changes that connect a user action to storage and a checked result rather than generating the whole application at once.
Learning objective: Give Copilot the relevant files, interface, examples and acceptance criteria; request a bounded patch and ask it to flag uncertainty.
Learning objective: Connect each task to its tests and record accepted, modified or rejected suggestions with reasons.
Learning objective: Parse CLI input through a shared validation layer and reject invalid values before any database write.
Learning objective: Create a small schema, use parameterized queries and close connections through explicit resource management.
Learning objective: Return deterministic results and calculate totals from integer minor units with a documented conversion boundary.
Learning objective: Require an explicit record identifier, report missing records and preserve all unrelated expenses.
Learning objective: Inspect inputs, SQL parameters, file paths, dependencies, exception handling and unintended shell or network operations.
Learning objective: Demonstrate core commands, review the diff against requirements and document a rejected or corrected AI suggestion.
Learning objective: Run pytest, interpret collected tests and use clear arrange, act and assert structure.
Learning objective: Check amount parsing, date validation and summary calculations with small independently derived expected results.
Learning objective: Cover empty input, whitespace, zero, negatives, excess precision, non-finite numbers and invalid calendar dates.
Learning objective: Use pytest.raises to verify specific validation failures and distinguish a deliberate rejection from an unrelated crash.
Learning objective: Capture stdout and stderr and check that invalid input produces an informative nonzero result.
Learning objective: Spot tautological assertions, missing cases and tests that reproduce the same faulty algorithm as the production code.
Learning objective: Supply sample expenses and common setup through explicit fixture dependencies without hiding the intent of each test.
Learning objective: Choose function scope by default and use yield teardown to close resources and avoid state leaking between tests.
Learning objective: Use tmp_path to give each test a disposable database location instead of touching a personal expense file.
Learning objective: Create an isolated database, insert and retrieve records and verify storage after closing and reopening the connection.
Learning objective: Use conftest.py deliberately, avoid oversized shared state and keep test data readable.
Learning objective: Test creation, filtering, deletion and failures against a real temporary SQLite database.
Learning objective: Use real SQLite for persistence integration tests and controlled doubles for clocks, environment and selected failure paths.
Learning objective: Use unittest.mock.patch at the import location used by the code under test and explain why patching elsewhere may have no effect.
Learning objective: Apply autospec where appropriate and assert meaningful interactions without locking tests to incidental implementation details.
Learning objective: Use monkeypatch for configuration and inject a date provider so tests do not depend on the actual day.
Learning objective: Raise a controlled repository error and verify the application reports failure without claiming an expense was saved.
Learning objective: Identify a suite that passes despite a broken real integration and restore an appropriate database or CLI integration test.
Learning objective: Locate the failing operation, inspect the relevant values and distinguish the symptom from the root cause.
Learning objective: Reduce an intermittent-looking failure to a specific input and repeatable command.
Learning objective: Step through validation and persistence in the editor debugger and compare observed state with the requirement.
Learning objective: Provide the minimal safe code, error and expected behavior; gather evidence before applying a proposed correction.
Learning objective: Capture the demonstrated bug in a failing test and confirm the test fails for the intended reason.
Learning objective: Repair a seeded date-filter or total-calculation bug and document the cause, change and regression evidence.
Learning objective: Identify behavior that must remain stable and choose one structural improvement at a time.
Learning objective: Move parsing and calculations into testable functions while keeping database and CLI effects at clear boundaries.
Learning objective: Consolidate repeated validation or query construction only where the shared responsibility is real.
Learning objective: Introduce a formatter and linter, explain selected findings and avoid treating style checks as proof of correctness.
Learning objective: Inspect uncovered branches with a coverage report and add meaningful cases rather than targeting a percentage alone.
Learning objective: Check changed signatures, exceptions, ordering and behavior; rerun the appropriate tests and document any rejected rewrite.
Build useful Python software with AI assistance while keeping control of the code you accept.
In this practical course, you will develop a single-user expense-tracking application in small, reviewable steps. Use GitHub Copilot to explore an implementation, inspect the resulting changes, and check behavior against clear requirements. The aim is to become a developer who can explain and maintain an application, including the parts suggested by AI.
Across 12 sections and 72 lessons, start by setting up Python, a virtual environment, VS Code, Git and Copilot. Make a first reviewed change, refresh the Python constructs used by the project, and learn to keep work focused through diffs, branches, commits and pull requests.
Define the expense tracker's behavior before generating code. Separate command-line input, validation, application services and SQLite persistence. Work with dates, categories and positive monetary amounts, store money as integer minor units, parameterize SQL values and report success only after a successful write.
Testing is central to the workflow. Use pytest assertions, parameterized cases, fixtures and temporary paths to check requirements independently. Learn where mocks and monkeypatching help, how to exercise failure scenarios, and how to avoid tests that merely repeat an implementation. Reproduce a defect, investigate its cause and add a regression test before accepting a fix.
Then improve structure through careful refactoring, interpret formatting, linting and coverage results, and run a reproducible test workflow with GitHub Actions. Development milestones and the final expense-tracker project bring the application, tests, setup guidance and code-review decisions together. Lesson resources support your practice as you build your own repository.
This course is designed for learners who already recognize basic Python variables, conditions and functions and can run a simple script. A focused refresher is included. You will need a computer with Python, VS Code, Git and internet access, plus Copilot access supported by your editor and account for direct Copilot practice. Feature availability, quotas and organization policies vary; advanced agent features are optional.
The project is a local, single-user command-line application using synthetic expenses. Web interfaces, authentication, bank integrations, cloud deployment and production accounting compliance are outside the core course. Independent coding and project practice take additional time beyond the video lessons. Finish with a repeatable habit: define the change, inspect the code, test the behavior and record the evidence.