All roadmaps

Python

One language for scripts, data and the web.

Python in depth: core language, data structures, OOP, modules and environments, files and formats, HTTP, testing and a taste of the data stack - with free resources on every topic.

Your progress0/55 topics · 0%

Progress is saved in this browser.

9 stages55 topics₹0 to follow

Filled nodes are the focus for this track; outlined ones can wait. Tap a topic to open it and mark it done, learning or skipped.

Python in 2026Related roadmapsAI & Data Scientist roadmapAI Engineer roadmapSQL roadmapProve it as you goReading is half of it. This roadmap isbacked by a free, scored Pythoncertification with a public verificationlink and a Backend Engineer jobsimulation on real tickets - evidence arecruiter can check, not a claim. Marktopics done, learning or skipped as yougo; your progress carries into theclassic view.Get certified - freeJob simulationClassic viewKnow the demand before thesyntaxPython in 2026What to learn in 2026Core Python,wellData and webstacksAI-assisted PythonWhich roles use itData, AI,backendAutomation andscriptsFresher vs switcherWhat companies expectThe hiring barWhat interviewstestProof they verifyWhat gets you hiredA 90-day planProjects thatget readCertification and proofWrite clear, correct Python.Core LanguageSyntax & variablesNumbers, strings & f-stringsControl flowFunctionsChoose the right containerinstinctively.Data StructuresLists & tuplesDictionariesSetsComprehensionsModel things; fail usefully.OOP & ErrorsClasses & instancesDunder methods & dataclassesExceptionsIterators & generatorsReal projects, not singlescripts.Modules, Files & EnvironmentsModules & importsVirtual environments & pipFiles, CSV & JSONpathlib & the standardlibraryUse Python for something real.Applied PythonHTTP & APIsCLI scripts & automationTesting with pytestA taste of the data stackThe features that make Pythoncode elegant at scale.Advanced PythonDecoratorsContext managersRegular expressionsType hints & static checkingConcurrency & the GILModern toolingKnow the doors Python opens.Web Frameworks (Awareness)FastAPIFlask & DjangoWhere Python leads nextCertified, verifiable Pythonskills.Prove ItCertificationFresher or experienced?Both tracks hold every topic. On the Fresher track thefoundations are filled and the later stages are outlined - dothem when a project needs them. On the Experienced track thefoundations are outlined and the later stages are filled. The2026 section at the top applies to both.Prefer a list?The classic view shows the same 8 stages as a sequentialchecklist with time estimates. Your marks are shared betweenthe two views.Open the classic view

Everything on this roadmap

Every stage and topic on the map, in reading order. Click any topic to open it.

The Python roadmap, topic by topic

Every topic on the map in reading order, with what to learn and the resources we recommend. Main topics are open; open any subtopic to read it. Select a topic name to open it in the topic panel, where you can track your progress.

  1. 1. Know the demand before the syntax

    Python in 2026

    2026

    Python is the language of data, AI and automation and the most widely taught first language in the world. The TIOBE index recorded its highest rating for any language ever, about 27 percent in July 2025, before a gradual decline through 2026 to under 18 percent by September; the Stack Overflow 2025 survey recorded Python's largest jump in years, up seven points; GitHub's Octoverse 2025 keeps it the second most used language on GitHub, behind only TypeScript, with AI the reason for both. The four nodes answer what to learn, which roles use it, what companies expect and what gets you hired.

    What to learn in 2026

    Learn core Python well - data structures, functions, classes, iteration, errors, files, modules, typing and testing - then one of the stacks jobs are built on, data or web, and then the AI-assisted way of working that every Python job now assumes. The sub-nodes order the three.

    Core Python, well

    Core Python is the whole interview for many roles: lists, dictionaries, sets and when each is right, comprehensions, functions and closures, classes and dataclasses, iterators and generators, exceptions, files and paths, modules and virtual environments, type hints, and tests with pytest. The Stack Overflow 2025 survey recorded Python's biggest jump in years, up seven points, and Octoverse 2025 has it second on GitHub. The questions have not changed: mutable defaults, generators versus lists, the difference between is and equals. Learn the standard library before any framework; it is what generated code is made of.

    Data and web stacks

    Jobs use Python through one of two stacks. Data: pandas, NumPy, a plotting library, Jupyter, SQL from Python, and scikit-learn for modelling - the entry to analyst, data scientist and machine learning roles. Web and services: FastAPI or Django, Postgres through an ORM, authentication, background jobs and deployment in a container - the entry to backend and AI engineering roles, since most model-backed services are Python too. The TIOBE index's record ratings for Python through 2025 are the sum of both stacks; pick the one that matches the role you want and learn it to deployment.

    AI-assisted Python

    AI

    Python is the language AI assistants write best, and the one in which their mistakes are quietest: a wrong pandas join, a mutable default, an exception swallowed, a dependency that does not exist. The Stack Overflow 2025 survey finds 80 percent of developers using AI tools, 46 percent distrusting their accuracy and 45 percent losing time debugging AI-written code; GitHub reports 80 percent of new developers using Copilot in their first week. The skill employers pay for is specify, draft, check, own: write the signature and the test first, let the tool fill in, run it, read it, and explain it as yours.

    Which roles use it

    Python is the language of data analysis and science, of AI engineering and of backend services at many companies, and the default for automation and scripting everywhere. The sub-nodes name the data, AI and backend roles, the automation roles, and the fresher and switcher routes.

    Data, AI, backend

    Data analyst, data scientist, machine learning engineer and AI engineer are the Python-first roles with the strongest 2026 demand: LinkedIn's Jobs on the Rise 2026 ranked AI engineer the fastest-growing US title with postings up 143 percent, Naukri's JobSpeak showed AI and ML hiring in India up 49 percent year on year in February 2026, and the US Bureau of Labor Statistics projects data scientist jobs growing about 34 percent over the decade. Backend roles in Python exist at many product companies and nearly all AI companies. The AI and Data Scientist and AI Engineer roadmaps are the two paths.

    Automation and scripts

    Automation is Python's quiet majority: scripts that move files, call APIs, scrape pages, generate reports, test systems and glue tools together, in operations, QA, finance, marketing and IT teams that never post a Python job but hire for it. The Stack Overflow 2025 survey's seven-point rise for Python is partly these users. For someone in a non-engineering role, a month of Python that removes a weekly manual task is often the most visible skill they can add, and it is how many switchers found their way into engineering.

    Fresher vs switcher

    A fresher should ship one project in the stack they want - a data analysis with a model, or a deployed API - with tests and a readme, before applying; HackerRank's 2025 report found early-career hiring the hardest hit and 74 percent of developers struggling to land a job, so a finished, explained project is the lever. A switcher from another language should spend the time on Python's idioms and the data or web stack rather than syntax. On this map freshers get the basics filled and the advanced stages outlined; experienced learners get the reverse.

    What companies expect

    Companies expect idiomatic, tested, typed Python in the stack they use, written and reviewed with AI tools, and the judgement to know when a generated function is wrong. HackerRank's 2025 report says practical assessments are the standard. The sub-nodes cover the bar, the interview and what gets verified.

    The hiring bar

    The bar is idiomatic Python a senior would merge: the right data structure, readable functions, type hints, tests, dependencies pinned, errors handled, and the stack's conventions followed, with AI tools used and every generated line understood. The Work Trend Index found 66 percent of leaders unwilling to hire without AI skills and 71 percent preferring a less experienced candidate who has them; Python teams expect both the tools and the judgement.

    What interviews test

    Expect a practical build or fix - a function with tests, a small script, a data task, an endpoint - often with an AI tool allowed; language questions on data structures, generators, classes and exceptions; stack questions on pandas and SQL or on APIs and deployment; and a walk through your project. HackerRank's 2025 report says 66 percent of developers prefer real-world assessments and that they are now the standard; product companies still add an algorithms round in Python, so keep lists, dictionaries and recursion fluent.

    Proof they verify

    Reviewers read the repository: structure, tests, types, a readme that explains the decisions, and a deployed or runnable result. One complete project in the right stack beats ten notebooks; OneRoadmap's free Python certification with its public verification link beats a course badge; a note on what the assistant drafted and what you changed is now part of the proof.

    What gets you hired

    A deployed project in the stack you are applying for, a repository with tests and types, a verified certification and a clear account of how AI tools were used. The sub-nodes give the ninety-day plan, the projects that get read and the proof that counts.

    A 90-day plan

    Month one: core Python with daily exercises and tests, no framework. Month two: the stack for your target role - a pandas and scikit-learn analysis, or a FastAPI service on Postgres - built with an AI tool and reviewed by you, deployed or published. Month three: a second project that adds a model-backed feature with an evaluation set or a spending cap, a readme with the decisions and the generated parts you fixed, the Python certification, and twenty targeted applications a week.

    Projects that get read

    Projects that get read do something real end to end: a data analysis that answers a question with a reconciled result and a model with a baseline; an API with authentication, tests and a container; a scraper or automation that replaced a manual process with logging and retries; a command-line tool published to PyPI with tests. Each has a repository and a readme. The World Economic Forum's Future of Jobs 2025 report names AI and big data the fastest-growing skills; a Python project that shows them, built with 2026 tools and explained, is the evidence.

    Certification and proof

    Proof is verifiable: OneRoadmap's free Python certification with a public link, a GitHub profile with real commits and tests, a deployed or published project and a short account of your AI workflow. With Python second on GitHub among more than 180 million developers in Octoverse 2025, the candidates who get replies are the ones whose work a reviewer can run.

  2. 2. Write clear, correct Python.

    Core Language

    Write clear, correct Python.

    Time: about 2 weeks. Topics: Syntax & variables · Numbers, strings & f-strings · Control flow · Functions.

    Syntax & variables

    Optional on the Experienced track

    Indentation as structure, dynamic typing and naming - Python's readability is a feature you maintain.

    Numbers, strings & f-strings

    Optional on the Experienced track

    Arithmetic, string methods, slicing and formatting - the everyday data you'll manipulate most.

    Control flow

    Optional on the Experienced track

    if/elif, for/while, range and match - plus comprehensions as the idiomatic loop replacement.

    Functions

    Optional on the Experienced track

    Default args, *args/**kwargs, return values and docstrings - functions that do one thing, named well.

  3. 3. Choose the right container instinctively.

    Data Structures

    Choose the right container instinctively.

    Time: about 1-2 weeks. Topics: Lists & tuples · Dictionaries · Sets · Comprehensions.

    Lists & tuples

    Optional on the Experienced track

    Mutability, slicing, sorting with keys - and when an immutable tuple communicates intent.

    Dictionaries

    Optional on the Experienced track

    Key-value workhorse: get/setdefault, iteration, dict comprehensions and counting patterns.

    Sets

    Optional on the Experienced track

    Membership at O(1), dedupe in one line, and set algebra for comparisons.

    Comprehensions

    Optional on the Experienced track

    List/dict/set comprehensions and generator expressions - transformation as expression, not ceremony.

  4. 4. Model things; fail usefully.

    OOP & Errors

    Model things; fail usefully.

    Time: about 2 weeks. Topics: Classes & instances · Dunder methods & dataclasses · Exceptions · Iterators & generators.

    Classes & instances

    __init__, methods, class vs instance attributes - objects as data with behaviour attached.

    Dunder methods & dataclasses

    __repr__, __eq__ and @dataclass - Pythonic objects without boilerplate.

    Exceptions

    try/except/else/finally, raising your own, and exception chaining - loud, useful failure.

    Iterators & generators

    The iteration protocol and yield - lazily processing data too big for memory.

  5. 5. Real projects, not single scripts.

    Modules, Files & Environments

    Real projects, not single scripts.

    Time: about 1-2 weeks. Topics: Modules & imports · Virtual environments & pip · Files, CSV & JSON · pathlib & the standard library.

    Modules & imports

    Packages, __main__ and project layout - code you can import, test and reuse.

    Virtual environments & pip

    venv + requirements - reproducible projects from day one, no global-site chaos.

    Files, CSV & JSON

    with-open patterns, csv and json modules - the daily bread of automation and data work.

    pathlib & the standard library

    Paths, dates, collections, itertools - the batteries that make Python feel effortless.

  6. 6. Use Python for something real.

    Applied Python

    Use Python for something real.

    Time: about 2-3 weeks. Topics: HTTP & APIs · CLI scripts & automation · Testing with pytest · A taste of the data stack.

    Build: API-powered CLI tool. A command-line tool that calls a public API, handles errors, and ships with tests and a README.

    HTTP & APIs

    requests: status codes, params, JSON and pagination - pulling data from the web reliably.

    CLI scripts & automation

    argparse, environment variables and scheduling - replace one manual chore this week.

    Testing with pytest

    Test functions, fixtures and parametrize - tests as executable documentation.

    A taste of the data stack

    pandas in ten minutes and a first notebook - the doorway to analysis and ML paths.

  7. 7. The features that make Python code elegant at scale.

    Advanced Python

    The features that make Python code elegant at scale.

    Time: about 2 weeks. Topics: Decorators · Context managers · Regular expressions · Type hints & static checking · Concurrency & the GIL · Modern tooling.

    Decorators

    Functions wrapping functions - logging, caching (functools.lru_cache) and auth checks without repetition.

    Context managers

    with-blocks and writing your own via contextlib - guaranteed cleanup for files, locks and connections.

    Regular expressions

    The re module: matching, groups and substitution - surgical text processing when string methods run out.

    Type hints & static checking

    Annotations, Optional/Union, and mypy/pyright - the typed Python professional codebases now expect.

    Concurrency & the GIL

    threading vs multiprocessing vs asyncio - what the GIL actually limits and choosing the right model per workload.

    Modern tooling

    uv/poetry for environments, ruff for lint+format - the 2020s toolchain that replaced a decade of ad-hoc setups.

  8. 8. Know the doors Python opens.

    Web Frameworks (Awareness)

    Know the doors Python opens.

    Time: about 1 week. Topics: FastAPI · Flask & Django · Where Python leads next.

    FastAPI

    Optional on the Fresher track

    Typed, async-first APIs with automatic docs - the modern default for Python services.

    Flask & Django

    Optional on the Fresher track

    Micro vs batteries-included - the long-standing frameworks you'll meet in existing codebases.

    Where Python leads next

    Optional on the Fresher track

    Data analysis, ML and automation paths - Python as the junction language of modern careers.

  9. 9. Certified, verifiable Python skills.

    Prove It

    Certified, verifiable Python skills.

    Time: about 1 week. Topics: Certification.

    Certification

    Take the OneRoadmap Python certification - verified proof in under 15 minutes.

Prove it as you go

Reading is half of it. This roadmap is backed by a free, scored Python certification with a public verification link and a Backend Engineer job simulation on real tickets - evidence a recruiter can check, not a claim. Mark topics done, learning or skipped as you go; your progress carries into the classic view.

Fresher or experienced?

Both tracks hold every topic. On the Fresher track the foundations are filled and the later stages are outlined - do them when a project needs them. On the Experienced track the foundations are outlined and the later stages are filled. The 2026 section at the top applies to both.

Prefer a list?

The classic view shows the same 8 stages as a sequential checklist with time estimates. Your marks are shared between the two views.

Frequently asked questions

Is Python still worth learning in 2026?

Yes. It is the language of data, AI and automation, the most taught first language, and the one assistants write best. The TIOBE index recorded its highest rating for any language ever in 2025, the Stack Overflow 2025 survey recorded its largest jump in years, and GitHub's Octoverse 2025 keeps it second on the platform behind only TypeScript.

Python or JavaScript as a first language?

Python if you want data, AI, automation or backend services; JavaScript if you want to build for the web. Both are beginner-friendly with large job markets, and the concepts transfer, so the second language is weeks once the first is understood. Many developers end up with both.

Do I need to learn a framework?

After the language. Core Python - data structures, functions, classes, iteration, errors, files, modules, typing and tests - is the whole interview for many roles and what generated code is made of. Then one stack for your target job: pandas and scikit-learn for data, FastAPI or Django for services.

How much Python do I need for data or AI jobs?

Fluency in the core language plus the data stack - pandas, NumPy, plotting, Jupyter, SQL from Python, scikit-learn - for data roles; plus model APIs, structured outputs, retrieval and evaluation for AI engineering. The AI and Data Scientist and AI Engineer roadmaps carry those halves.

How long does it take to learn Python?

The basics take weeks; fluency with the standard library, testing and one stack takes a few months of daily practice. Nobody can promise a timeline. The evidence is a project in the stack you want - a reconciled analysis with a model, or a deployed API - with tests, a readme and a certification a reviewer can verify.

Should I use AI assistants while learning Python?

Yes, as a tutor and a drafter, never as the author. Write the function signature and the test first, let the assistant fill in, run it, read it and explain it. The Stack Overflow 2025 survey found 45 percent of developers losing time debugging AI-written code; the habit of checking is the skill employers now test.

Will AI replace Python developers?

Python is the language assistants write best and the one in which their mistakes are quietest - a wrong join, a mutable default, a swallowed exception. The developer who specifies, reviews and owns the generated code ships far more than before; the one who pastes it ships bugs. Demand for the first has grown with the tools.

How do I prove Python skills without job experience?

A complete project in the right stack: a data analysis with a reconciled result and a model with a baseline, or an API with authentication, tests and a container; a readme with the decisions and the generated parts you fixed; a GitHub profile with real history; and OneRoadmap's free Python certification with its public verification link.