Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
AI-Assisted Python: Build and Test Apps with GitHub Copilot
Highest Rated
New
Rating: 5.0 out of 5(30 ratings)
31 students

AI-Assisted Python: Build and Test Apps with GitHub Copilot

Build a Python expense tracker with Copilot, SQLite, pytest and GitHub Actions. Review and test AI-generated code.
Created byCorels Emmanuel
Last updated 11/2026
English

What you'll learn

  • Build a Python expense tracker with clear requirements, input validation, SQLite storage and small, reviewable Copilot-assisted changes.
  • Review AI-generated Python for correctness, maintainability and security instead of accepting suggestions without checking them.
  • Write isolated pytest tests with fixtures, parameterization and appropriate mocks, then reproduce bugs and add regression tests.
  • Refactor tested code, run checks with GitHub Actions and document the AI suggestions you accepted, changed or rejected.

Course content

12 sections • 72 lectures • 8h 27m total length
  • Stage 1: Lesson 1 — Course Introduction7:00

    Understand the course learning journey, the expense-tracker project and the role of independent code review and testing.

  • Stage 1: Lesson 2 — How AI-Assisted Development Works5:16

    Learning objective: Distinguish inline suggestions, conversational assistance and tool-executing assistance; keep the developer responsible for accepted changes.

  • Stage 1: Lesson 3 — Set Up Python and the Editor9:43

    Learning objective: Create a virtual environment, select the correct interpreter in VS Code and install the course development dependencies with python -m pip.

  • Stage 1: Lesson 4 — Connect GitHub Copilot6:26

    Learning objective: Sign in through the supported editor flow, confirm access and locate suggestion and chat controls without assuming every plan exposes identical features.

  • Stage 1: Lesson 5 — Run the Starter Project and Tests5:44

    Learning objective: Run the supplied application skeleton and initial pytest smoke test; diagnose an incorrect interpreter or missing dependency.

  • Stage 1: Lesson 6 — Make One Small Reviewed Change7:10

    Learning objective: Ask Copilot for a short helper, read the diff, run it against a known example and explain why the change is acceptable.

Requirements

  • Basic Python familiarity: variables, conditions, functions and running a script. A computer with Python, VS Code, Git and internet access. A GitHub account with supported Copilot access is needed for direct Copilot practice; plans and organization policies vary. Use synthetic expense data.

Description

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.

Who this course is for:

  • Python learners, junior developers, self-taught programmers and professionals who want to build applications with GitHub Copilot while understanding, reviewing and testing the code. A focused Python refresher is included; this is not a complete introduction to programming.