Python Roadmap 2026
Learn Python from syntax to idiomatic code: data structures, functions, OOP, files, packages, testing and tooling.
4 stages · 8 units · Beginner · about 120 hours · Last reviewed 19 November 2026
What is a python?
Python is a high-level, general-purpose programming language known for readable syntax. It is used for scripting, web backends, data analysis, machine learning, automation and testing. Its standard library and the pip package ecosystem cover a wide range of tasks, which makes it a common first language for students.
Step-by-step python roadmap
- 1
Fundamentals
Beginner · about 28 hours
Core syntax.
- Basics
Basics are the first building blocks of Python: variables, numbers, strings and booleans, plus the control flow that decides what runs. Variables are names bound to objects, types are checked at runtime, and if, for and while statements use indentation instead of braces to show structure.
- Data Structures
Data Structures are Python's built-in containers for grouping values. Lists and tuples hold ordered items, dictionaries map keys to values, and sets store unique items with fast membership tests. Choosing the right container decides how clear and quick your code is, and comprehensions build them concisely.
- Basics
- 2
Functions and Modules
Beginner · about 28 hours
Organise code.
- Functions
Functions are reusable blocks of code defined with def, taking parameters and returning values. Python supports default and keyword arguments, *args and **kwargs, closures and lambdas. Functional tools such as map, filter, sorted with a key, and decorators let you treat functions as values and pass them around.
- Modules
Modules are Python files that hold reusable code, and packages are folders of modules. The import statement loads them, and the standard library offers modules such as os, pathlib, json, datetime and collections. pip installs third-party packages, ideally into a virtual environment made with venv.
- Functions
- 3
Object-Oriented Python
Beginner · about 28 hours
Model problems.
- Classes
Classes are Python's way of bundling data and behaviour into objects. A class defines attributes and methods, __init__ sets up new instances, and inheritance lets one class extend another. Special methods like __repr__ and __eq__ customise behaviour, and protocols and abstract base classes describe what an object can do.
- Errors
Errors covers how Python signals and handles problems using exceptions. The try, except, else and finally blocks catch specific errors and guarantee cleanup, and you can raise your own exception classes. The same unit includes working with files, using with statements, and reading and writing formats such as CSV and JSON.
- Classes
- 4
Real World Python
Intermediate · about 35 hours
Build useful things.
- Practical Tools
Practical Tools are the skills that turn Python into a working scripting language. They include calling web APIs with the requests library, parsing JSON responses, and writing command-line programs with argparse. Together they let you automate downloads, call services and build small utilities others can run with arguments.
- Quality
Quality in Python means confirming that code is correct, readable and safe to change. Tests are written with pytest or unittest, style is enforced by tools such as ruff, black and mypy, and concurrency options include threads, asyncio and multiprocessing. Each concurrency choice is shaped by the Global Interpreter Lock.
- Practical Tools
Frequently asked questions
Ready to practise for interviews?
Practise python questions with an AI mock interviewer and get feedback on your answers.