Python Software Foundation

The Official Python Tutorial

Python's own tutorial, maintained by the PSF — 16 chapters from control flow to virtual environments. Written for programmers new to Python, not new to code.

FreeIntermediate4–10 hoursEnglishPython
Go to course

Opens on Python Software Foundation — a direct link, no affiliate tracking.

Course overview

Read the target-audience line in the official Python tutorial before you recommend it to anyone: it says the tutorial is designed for programmers who are new to Python, not beginners who are new to programming. That single sentence is the most important thing about this resource and the thing most course listings, ours included, have got wrong.

Taken on its own terms it's superb. The Python Software Foundation maintains it alongside the language, so it's never out of date, and it moves at the pace of someone who already understands what a loop is and just needs the Python spelling of it.

What it covers

Sixteen chapters, in a sensible order: using the interpreter, an informal introduction, control flow, data structures, modules, input and output, errors and exceptions, classes, two chapters touring the standard library, virtual environments and packages, then interactive input editing and the famous floating-point arithmetic chapter. That floating-point section is worth reading even if you never write Python — it's one of the clearest explanations of the problem anywhere.

What it openly refuses to do

The introduction states plainly that it doesn't attempt to be comprehensive or cover every commonly used feature. It's there to give you the flavour of the language and get you ready to read the Standard Library reference. So there are no exercises, no projects, no tests, and no feedback of any kind. You read, you type into a REPL, and nobody tells you if you understood it. For a self-taught beginner that absence is fatal; for an experienced developer it's exactly right.

Who it's for

Developers moving to Python from another language — you can finish it in a couple of evenings and come out able to read most Python code. Also good for anyone who learned Python from a bootcamp and has holes: the modules, packages and exceptions chapters fill in things applied courses skip. Skip it entirely if this is your first programming language. Python for Everybody or freeCodeCamp's Python material will actually teach you; this will just show you syntax you can't yet contextualise.

Our take

Authoritative, current, free forever, and mislabelled everywhere as a beginner resource. The other real weakness is dryness — it's reference-adjacent prose with no narrative pull, and the standard library tour chapters in particular read like a catalogue. Use it as the fastest possible on-ramp if you already code, and point genuine beginners somewhere else without apology.

At a glance

Price
Free
Level
Intermediate
Time to complete
4–10 hours
Language
English
Certificate
Not offered
Taught by
Python Software Foundation
Category
Python
Last checked
26 Aug 2026

Topics covered

  • python
  • docs
  • reference

More like this

Other courses covering the same subjects.

Ilya Kantor

Free

The Modern JavaScript Tutorial

Ilya Kantor's long-maintained JavaScript textbook: language internals, the DOM, async and browser APIs, with exercises and worked solutions…

Beginner10+ hrs
View →

Marijn Haverbeke

Free

Eloquent JavaScript (Free Book)

Marijn Haverbeke's fourth edition, free online — language fundamentals, the browser and Node, with projects including writing your own…

Intermediate10+ hrs
View →

Akshay Saini

Free

Namaste JavaScript

Akshay Saini's deep look at JavaScript internals — execution context, hoisting, scope chains, closures and the event loop, drawn out on a…

Intermediate4–10 hrs
View →

Microsoft

Free

The TypeScript Handbook

Microsoft's official TypeScript guide — basics, narrowing, generics, conditional and mapped types. Explicitly not a tooling or JavaScript…

Beginner2–4 hrs
View →

Reviews

No reviews yet

Took this course? Share what you thought.