🎓 A1Learner
🔍
0 of 52 lessons completed

Home / Python Intermediate

Python Intermediate

The middle rung of Python: 52 short lessons joining the Beginner pieces into programs that do real jobs — functions, classes, text, files, the web, errors and testing. Every lesson ends with a working program.

Intermediate Python turns the pieces from Beginner into programs that do real jobs. Cleaning a messy file, fetching a page, organising a folder — the course builds each of those from tools you already know, plus eleven new ones.

Start learning ❯❯52 lessons · 13 topics · 0/52 completed

Course contents

Work top to bottom — the sidebar is the course. Topics later in the list assume the ones before them.

Python Intermediate Intro

Intermediate · ⏱ 5 min · standalone lesson

Functions in Practice

Start: Python Sorting With a Key ❯

Classes in Practice

Start: Python Composition: Classes Inside Classes ❯

Text in Practice

Start: Python Cleaning Text Data ❯

Data in Practice

Start: Python Counting With Dictionaries ❯

Files in Practice

Start: Python Reading Files Line by Line ❯

The Operating System

Start: Python Listing Folders and Reading Settings ❯

Data From the Web

Start: Python Fetching Text From the Web ❯

Errors in Practice

Start: Python Catching the Right Exception ❯

Testing & Debugging

Start: Python Small Checks for a Module ❯

The Standard Library

Start: Python Dates in Real Programs ❯

Bigger Programs

Start: Python Splitting Code Into Modules ❯

Final Projects

Start: Python Project: A Quiz Game ❯

Learn Python Intermediate

Intermediate Python sits between the first steps and the deep parts. Beginner taught variables, loops, functions, lists, classes and files. Advanced covers decorators, generators, type hints and asyncio. This course fills the middle: the habits and tools that turn small scripts into programs you would actually keep and reuse.

The course holds 52 lessons grouped into 13 entries, and runs to about five hours and fifty minutes of reading and practice. Eleven of the lessons are projects, each one a small working program: a data cleaning pipeline, a log analyser, a file organiser, a contact book, a quiz game, and six more. The rest teach one tool or one habit each, always with a runnable example beside it.

Nothing here needs new software. The same Python 3 from Beginner is enough, and every example was executed for real before publication, so the output shown with each program is the output the interpreter really gave.

What you will learn

Here is what the 52 lessons cover, in the order they teach it:

  • Sort lists and dicts with a key function, including lambda keys
  • Change and keep list items with map() and filter(), then chain the two
  • Dodge the mutable default trap, where one list is shared by every call
  • Build classes that hold other classes, and choose between composing and inheriting
  • Clean messy text, format reports, and count with exact decimal numbers
  • Count and group real data with dictionaries, and pick the right collection for a job
  • Read files line by line, write structured text, and analyse a log file
  • List folders, read settings, walk a folder tree, and run other programs
  • Fetch text from the web, read its words, and save what you fetch
  • Catch the right exception, write helpful error messages, and read a traceback
  • Check a module with small asserts, and debug with pdb when prints stop being enough
  • Use dates, random choices and maths from the standard library in real programs
  • Split code into modules, lay out a small package, and finish with four full projects

Who this Python course is for

This course starts where Python Beginner ends. Readers who finished Beginner will be on solid ground from the first lesson. Readers who learned the basics elsewhere should be comfortable with variables, loops, functions, lists, dicts and simple classes before starting; the opening lesson names exactly what it assumes.

It suits someone who can already write a small script and now wants programs that last longer than one sitting. The projects are the point: each one is a tool with a real job, not a toy example. Career changers, students and hobbyists take this route when toy programs stop being enough.

Added together, the lessons run to about five hours and fifty minutes. Most readers finish inside a month of regular evenings. The middle entries lean on functions and collections from the start, so skipping ahead tends to surface gaps quickly.

How this course works

Every program on these pages ran for real before it was published. The output printed beside it is the output the interpreter gave, not a guess. That matters most when a lesson turns on ordering or rounding, where a guessed line would teach the wrong thing.

The entries run in one fixed order. A lesson on chaining map() and filter() leans on plain map() and filter() from the lesson before it. Reading out of order is allowed, but the missing piece usually shows up fast.

Every lesson ends with one exercise. You pick an answer, then read why it is right and why the tempting answers are wrong. That short check turns reading into a small test of what stuck.

Your place is saved right here in this browser, with no account and no cost. Close the tab and come back later: the course remembers where you stopped.

Frequently asked questions

Do I need to finish Python Beginner first?

Yes, or know the same ground from elsewhere: variables, loops, functions, lists, dicts, simple classes and files. The opening lesson names exactly what it assumes, so you can check in a minute.

What is new here compared with Python Beginner?

Ten new tools and habits: sorting with keys, map() and filter(), the mutable default trap, composition, the os module beyond paths, subprocess, fetching text from the web, the EAFP error style, pdb, and exact decimal numbers. Everything else is practice with tools Beginner already taught.

Does this course teach web scraping or APIs?

It teaches fetching text from the web and reading its words, with the standard library only. Full API work with JSON belongs to Python Advanced, which covers the json module in depth.

Does this course teach testing?

It teaches small checks with assert and debugging with pdb, which is how working programmers actually test small modules. The unittest framework belongs to Python Advanced.

How long does Python Intermediate take to complete?

The lesson minutes add up to 349, roughly five hours and fifty minutes in total. Most readers finish inside a month of regular evenings, one or two entries per sitting.

What can I build once I finish this course?

Small tools with real jobs: a data cleaning pipeline, a log analyser, a file organiser, a contact book, a quiz game, a reading list manager, a budget tracker and a notes app. Those eleven projects are the course itself, not an afterthought.

Next steps

  • Python Advanced ❯ — The deeper Python course, with 102 lessons on decorators, generators, typing, asyncio and the rest of the deep parts.
  • PyTorch Beginner ❯ — The first step into machine learning with Python, 79 lessons from tensors to a trained model.
  • DSA Beginner ❯ — Data structures and algorithms from the ground up in 100 lessons, written for Python readers.