Complete for freeBeginner to intermediate

Course 4

Python Projects and Problem Solving

This self-paced course picks up where basic Python leaves off and moves from one-file exercises to programs with several files and saved data. Learners set up VS Code with Microsoft's Python extension and a virtual environment, then build a grade book that turns messy text into a ranked report, a contacts manager made of small testable functions, and a quiz game that loads its questions from JSON and keeps a score history that survives crashes and damaged files. Later modules cover libraries and input validation, systematic debugging, and designing a complete command-line project, ending with a capstone: a flash-card, expense, or inventory tool that remembers its data and comes with tests. Code on the lesson pages runs for real and shows its actual output, and every module ends with practice exercises that have hints and worked solutions.

Free completion promise: Python, VS Code, and the Python extension are all free, and every lesson and project uses only them, Python's built-in modules, and free libraries installed with pip.

What's inside

  • 24hand-written lessons
  • 23videos
  • 8step-through animations
  • 18diagrams, charts & live previews
  • 56quiz questions
  • 234code examples

Before you begin

Requirements & setup for Python Projects and Problem Solving

Start with the complete free pathway below. Hardware, subscriptions, paid APIs, and cloud credits are never required.

Start here ยท free path

Your complete $0 setup

Python, VS Code, and the Python extension are all free, and every lesson and project uses only them, Python's built-in modules, and free libraries installed with pip.

$0 required

Setup checklist

0 of 6 complete

This checklist is a temporary setup aid and resets when the page reloads. Saved course progress begins in the setup lessons below.

  1. Everything required for this course is free. Paid software, APIs, cloud credits, GPUs, and physical equipment are optional.

    About 2 min
  2. Install Python 3.10 or newer from python.org. On a Chromebook, turn on the Linux development environment and install python3-venv and python3-pip.

  3. Install VS Code from code.visualstudio.com.

    About 5 min
  4. In VS Code's Extensions view, install the extension named Python published by Microsoft.

    About 5 min
  5. Open a project folder and create a .venv virtual environment with the Python: Create Environment command.

    About 5 min
  6. VS Code with the Python extension: In VS Code's terminal, python --version (python3 --version on macOS or a Chromebook) prints Python 3.10 or newer, and hello.py prints its output when you press Run Python File.

    About 5 min

Software

1 item

VS Code with the Python extension

Visual Studio Code is a free code editor from Microsoft. With its Python extension it shows a whole project folder at once, runs programs in a built-in terminal, and underlines many mistakes as you type, which suits projects made of several files. Python 3 itself is a separate free install from python.org.

Course need
VS Code with the Python extension
Free

Visual Studio Code is a free code editor from Microsoft. With its Python extension it shows a whole project folder at once, runs programs in a built-in terminal, and underlines many mistakes as you type, which suits projects made of several files. Python 3 itself is a separate free install from python.org. Every lesson is readable text with copyable code, keyboard-friendly quizzes and step-throughs, and videos with YouTube captions.

  1. Install Python 3.10 or newer from python.org. On a Chromebook, turn on the Linux development environment and install python3-venv and python3-pip.
  2. Install VS Code from code.visualstudio.com.
  3. In VS Code's Extensions view, install the extension named Python published by Microsoft.
  4. Open a project folder and create a .venv virtual environment with the Python: Create Environment command.

Hardware

Nothing required

No physical hardware is needed for this course.

Accounts

Nothing required

No external account is needed for this course.

What you will be able to do

Learning outcomes

  • Model records with lists, dictionaries, sets, and tuples, and reshape them with comprehensions and sorted(key=...).
  • Write small functions that return values, replace deep nesting with guard clauses, and keep input and printing in one place.
  • Save and load text and JSON files with pathlib, handling missing and damaged files without losing data.
  • Validate user input and manage a project's libraries inside a virtual environment.
  • Track down bugs by reading tracebacks and gathering evidence, and confirm fixes with tests.
  • Plan, build, and test a complete command-line program that keeps its data between runs.

Build real work

Assignments & capstone

Free tools accepted

Contacts manager that saves to JSON

Build a command-line contacts manager in VS Code from small functions that clean phone numbers, check emails, add, search, and delete, and save the contacts to a JSON file that loads on the next run and survives a damaged file.

Python, VS Code, and the Python extension are all free, and every lesson and project uses only them, Python's built-in modules, and free libraries installed with pip. Submit your project file, or screenshots with descriptions, or a short demo.

Crash-proof command-line tool

Build a command-line tool with argparse options, the random or datetime module, and input checks that never crash, then find and fix one real bug with VS Code breakpoints and add a check that keeps it fixed.

Python, VS Code, and the Python extension are all free, and every lesson and project uses only them, Python's built-in modules, and free libraries installed with pip. Submit your project file, or screenshots with descriptions, or a short demo.

Final assessment

Persistent productivity tool

Build a multi-file Python command-line tool, such as a to-do list, habit tracker, flash-card trainer, or expense tracker, that saves to JSON, has four or more subcommands including update and search, and never shows a traceback for user mistakes. Deliverables: Tool split into interface, logic, and storage modules, JSON storage that handles missing and damaged files, 8+ passing unittest tests, including edge cases, README covering setup, usage, files, and limits, and Three-minute demo.

Prerequisites & pacing

Skills assumed

  • Variables, if/elif/else, for and while loops, and basic functions in Python
  • Saving and running a .py file in any editor

Recommended prior courses

These are advisory, not locks. If you already have the skills listed above, enroll directly.

Choose your pace

  • self paced: 8 weeks at 4 hours per week
  • weekly: 8 weeks at 4 hours per week

Part of this learning path

Course created by Zafir Shamsi.