Python developer roadmap
6 stages · 37 topics
Python is a good first language: the syntax is clean, and the same skills carry into scripting, web development, data analysis and machine learning.
This roadmap goes from the basics to the point where you can choose a direction. Build a small program at each stage; reading alone does not make the ideas stick. Our Python learning hub has guides for the early stages.
Stage 1: Setup and the basics
Install Python and write your first programs.
- Installing Python 3
- Running scripts and the interactive shell
- Variables and types
- Strings and f-strings
- Numbers and operators
- Input and output
- Conditions and loops
Stage 2: Data structures and functions
Choose the right container and reuse your code.
- Lists and tuples
- Dictionaries and sets
- Slicing
- List comprehensions
- Defining functions
- Arguments, *args and **kwargs
- Scope
Stage 3: Errors, files and modules
Handle problems and work with data on disk.
- try, except and finally
- Reading and writing files
- The with statement
- CSV and JSON
- Importing modules
- The standard library: os, pathlib, datetime
Stage 4: Classes and cleaner code
Organise larger programs.
- Classes and objects
- Inheritance
- Dunder methods
- Dataclasses
- Type hints
- Decorators and generators
- PEP 8 style
Stage 5: Environments and libraries
Use other people's code safely.
- Virtual environments (venv)
- pip and requirements.txt
- Calling APIs with requests
- Working with dates and times
- Regular expressions
Stage 6: Choose a direction
Pick one area and build a small project in it.
- Web: Flask, Django or FastAPI
- Data: pandas and NumPy
- Automation: scripts for files, email and spreadsheets
- Testing with pytest
- Git and GitHub
Free tools for this path
Small jobs that come up while you learn. They run in your browser.
- JSON Formatter & ValidatorFormat, validate and minify JSON in your browser. Shows the exact line and column of any error.
- Regex TesterTest JavaScript regular expressions live: see matches highlighted, capture groups and a replace preview.
- JSON, YAML & CSV ConverterConvert JSON to YAML, YAML to JSON, JSON to CSV and CSV to JSON, with nested data, delimiters and type detection handled.
- Unix Timestamp ConverterConvert Unix timestamps to dates and dates to timestamps in any time zone. Detects seconds, milliseconds, microseconds and nanoseconds.
- UUID GeneratorGenerate random (v4) or time-ordered (v7) UUIDs in bulk, and check the version of any UUID.
- Hash Generator (MD5, SHA-256, SHA-512)Generate MD5, SHA-1, SHA-256, SHA-384, SHA-512 and CRC-32 hashes of text or files, with HMAC and a hash checker.
- Cron Expression GeneratorBuild and understand cron schedules: plain-English meaning, the next run times and a ready crontab line.
- Text Diff Checker (Compare Two Texts)Compare two pieces of text or code side by side and see added, removed and changed lines, with a copyable patch.
Common questions
How long does it take to learn Python?
The basics take a few weeks of regular practice. Becoming comfortable enough to build a small project usually takes a few months. It depends on how much time you can give it.
Should I learn Python or JavaScript first?
Either works. Python is often easier to read at the start; JavaScript is needed for anything that runs in a web browser. Pick the one that matches what you want to build.
Do I need maths to learn Python?
Not for the basics, scripting or web development. Data science and machine learning use more maths, but you can pick that up as you go.
More roadmaps
- Web fundamentalsHTML, CSS, JavaScript and Git: the base every web developer needs.6 stages · 30 topics
- Node.js backendFrom JavaScript to a secure API running on a server.6 stages · 35 topics
- React frontendComponents, hooks, state and routing, step by step.6 stages · 32 topics
- Vue.js frontendVue 3, the Composition API, routing and state.6 stages · 29 topics
- Flutter mobileDart, widgets, state management and publishing an app.6 stages · 32 topics
- DevOpsLinux, Docker, CI/CD and the cloud, in order.7 stages · 35 topics