Python course from scratch
A new version of the course on the latest Python 3.15. Want to move into IT or level up your skills for work? Start with the easiest language to start with. You'll build 8 projects: from a console game to a camera that understands gestures.
first level free, no cardnothing to install to startlearn at your own pace
Outcome
What the Python 3.15 course gives you
In the course you practise the whole syntax and basics of Python and apply them to real tasks right away. Then it all depends on your goal:
A start in the profession
Language basics, OOP, Git, tests and async code: this is where a Python developer's path and every junior interview begin. A junior Python developer earns on average $4,950 a month.
Useful at your current job
You automate reports from Excel and PDF, collect data from websites, write bots that work in the browser on their own. Hours of manual work turn into a single run.
Your own projects
A camera that understands gestures, a browser bot, a sales report with charts: things you can show and actually use.
Who it's for
Who the Python course from scratch suits
The course is built for learning from scratch: no programming experience needed.
But honestly: it fits some people perfectly, and others are better off with another format.
It suits you if
You have no programming experience and want to start with the easiest language
You plan to change careers and want a solid foundation at your own pace
You work with data as an analyst, marketer or in finance and want to automate routine
You study or work in IT and are adding Python as a strong skill
You already code in another language: you'll get through the first levels fast and move on to what makes Python different
You've tried to learn on your own but never got to the end, and you need a clear path with practice
More than 2 million people have learned with CodeGym since 2012. The course starts from scratch.
Another format is better if
You're already a Python developer and write code with confidence: advanced topics and frameworks suit you better
You're looking for ready-made code without practice: here you'll write it with your own hands (and that's a feature)
first level, no card
Maximum practice, no fluff
How the Python course works
People most often quit learning when they see no results (21.5%) or hit “the wall of difficulty” (21.1%), as our research showed. The course is built so that neither happens.
Code from day one
A short lecture, and straight to a task. You take the first levels in the browser, in WebIDE, and then move to PyCharm with our plugin, the way real developers work.
An error? The AI mentor explains
You press “Check” and see the result a second later. Not just “error”, but what exactly is wrong and how to fix it. Any time of day.
Progress you can see
78 levels, tasks, projects and achievements. Every step shows, and that keeps you going where ordinary courses lose students in week three.
And so on at every level with tasks
Curriculum Up to date for 2026
Python course curriculum: 8 modules
From the first line of code to data analysis, browser bots and computer vision. The course runs on Python 3.15, every topic is reinforced with instantly checked tasks, and every module ends with a project.
- Commands and the first program
- Types, calculations and input
- Conditions
- Loops
- Installing PyCharm and the first run
- Lists: a first look
- Functions: a first look
- The ready-made random and math libraries
- Errors and logs
- Project “Space quiz”
- Lists
- List comprehensions and unpacking
- Tuples
- Sets
- Dictionaries and frozendict
- Practice: debugging collection errors
- Functions: arguments and results
- Sorting and functions as values
- Generators, iterators and decorators
- Project “Movie night”
- Classes, objects and encapsulation
- Composition and inheritance
- Type hints
- Dataclasses
- Exceptions
- Modules, external libraries and uv
- Files and directories
- JSON and match/case
- Project “My to-do list”
- Meet Claude Code
- Skills and plugins: reports in Excel, PDF and PowerPoint
- Git: commit, diff and rolling back the agent's edits
- MCP and Playwright: checking in the browser
- Context, plan mode and helpers
- Branches, worktrees and parallel helpers
- CLAUDE.md, /clear and Context7
- A task template, a contract and pytest
- pytest tests and reviewing the agent's code
- Project “Sticker factory”
- OpenCV: the first program with a camera
- Video stream, pixels and NumPy
- Drawing over an image
- MediaPipe: recognition without training a model
- Hand tracking
- Gesture control
- Face tracking
- Project “Magic camera”
- pandas: first data
- Filtering and sorting
- Data cleaning
- Merging tables
- Grouping and aggregation
- Pivot tables
- Excel reports
- Data from PDF
- Interactive charts
- Project “Business under the microscope”
- The first Playwright run
- HTML and CSS selectors for automation
- Finding elements
- Actions on the page
- Waits and assertions
- Collecting data
- Crawling pages
- Saving, errors and the session
- Project “Playwright browser bot”
- Concurrency and parallelism
- Async/Await: the first coroutines
- Asyncio: several tasks at once
- Asynchronous HTTP requests
- Managing asynchronous tasks
- Threads: the first threads
- Thread synchronization
- ThreadPoolExecutor
- Asyncio and threads together
- Multiprocessing
- The GIL and free-threaded Python
- Project “Executor race”
first level, no card
Practice
Tools and projects of the Python course
Every module ends with a project: over several lessons in a row you build one working program and see tasks add up to a result.
Space quiz
A console game: asks questions about space, gives three tries and a hint, and adds up the score at the end
Movie night
Picks a film from a catalog by genre and rating, suggests a random one and keeps a list of favourites
My to-do list
A task manager with categories and checkmarks that keeps everything in JSON and remembers the list after a restart
Sticker factory
Turns pet photos into stickers with captions. The AI agent writes the tests and the code from your spec with examples, and you review and accept the work
Magic camera
Puts glasses, a frame or an outline on a face and switches effects with an open palm, from a webcam or a video
Business under the microscope
Combines sales from Excel and price lists from PDF, calculates revenue and profit and builds a report with charts
Browser bot
Searches a site, fills in a request form, goes through a catalog and collects data on its own, like a person, only tireless
Executor race
Does the same job four ways: one after another, with asyncio, with threads and with processes, and measures which is faster and why
You'll master:
AI in the course
You learn to work with an AI agent, not to compete with it
More and more code is written by AI, and the key skill becomes setting the intent and the quality bar. In development that's a specification and a Definition of Done: what should come out and how you can tell the work is finished. In the course you go step by step from code author to agent director, on the real Claude Code.
You write it yourself
You write the quiz, the movie picker and the to-do list with your own hands, and the AI mentor helps where needed: it explains the error but leaves the solution to you. Without this foundation you can't check someone else's code.
The agent writes, you edit
You ask in words, Claude Code makes a draft, and you read the diff, roll back what's extra with Git and fix things by hand. The agent checks the page in the browser itself, but you decide whether to accept the change.
Specification and Definition of Done
You write the spec: the goal, the constraints and “done when”, a function contract with examples from which the tests appear before the code. The agent works to a plan, and you accept the result by the tests and the diff. That's how the stickers, the camera, the sales report, the bot and the executor race are made.
Several agents at once
You run three helpers in parallel, each with its own context, and keep experiments in separate branches and worktrees. You sort the findings yourself: what to accept, what to postpone, what to reject, and decide which branch makes it into the working version.
You decide how much freedom to give the agent. It makes a small fix on its own, carries a feature through an approved plan, and doesn't touch tests or live data without your word. Matching the mode to the task is part of the skill too.
New program
What changed in the Python course in 2026
The course has been updated: a new language version, modern libraries and a project in every module. If you're already studying the previous program, you lose nothing: it stays open.
| Program 2026 | Program 2025 | |
|---|---|---|
| Python version | Python 3.15: frozendict, lazy import and Python without the GIL | Python 3.12 |
| Scope | 8 modules, 78 levels, 410 lectures, 900+ tasks, 78 tests | 6 modules, 64 levels, 351 lectures, 817 tasks, 63 tests |
| Projects | 8 complete projects, one in every module: from 8 to 17 parts, each one checked | 1 project: a Selenium bot built along the lectures, unchecked |
| AI | The AI mentor in tasks and the Claude Code agent, included in the course price: from module 4 you give it tasks and accept its work | The AI mentor in tasks |
| Developer tools | uv and virtual environments, pytest tests, type hints and mypy, dataclasses, Git in practice | pip, unittest tests, the pdb debugger, Git: 3 lectures without tasks |
| After the basics | Data analysis: pandas, Excel, PDF and Plotly charts. A Playwright browser bot, computer vision with OpenCV and MediaPipe, asyncio, threads and processes | Excel and pandas, scraping with BeautifulSoup, a Selenium bot, charts, PDF, images and video, Tkinter, algorithms |
| Who it suits | Those starting now | Those already following it, and those who want to brush up on algorithms for interviews |
Just starting?Choose Program 2026.Already on the previous one?Your progress is saved, and you can finish it calmly: Python course 2025.
How access works
Start for free, and subscribe when you want more
The first level is free, no card needed. You subscribe only if the format works for you.
First level
- 7 lectures and the first 9 tasks
- Write and check code right in the browser
- Instant checks and AI mentor hints
- Sign up in a minute
The whole Python course
- All 78 levels, 410 lectures and 900+ tasks
- A PyCharm plugin and WebIDE in the browser
- The AI mentor and the help section
- 8 projects and the Claude Code AI agent
- Cancel any time, progress is kept
Want access to all programming courses: Python, SQL, Docker, Java and more?
There's the ALL IN ONE subscription.
CodeGym learners
CodeGym has taught programming since 2012
More than 2 million people already learn with CodeGym. Most of its courses start from scratch, like this one.
since 2012
from 1,500+ reviews
recommend CodeGym
Reviews
What Python course students say
Quotes from learners' reviews, the long ones shortened.
reviews
Python in 2026
Why learn Python from scratch and how much you can earn with it
A Python developer writes the programs that run “under the hood”: the back end of sites and apps, data processing, automation and AI services. Python is No. 1 in the TIOBE index, used by 57.9% of developers, and it's the main language of AI jobs.
AI doesn't replace programmers; it raises demand for those who understand code and can give AI tools the right tasks. That's why now is a good time to start.
What you'll do
How much Python developers earn
median, USD a month before taxCan you really learn it from scratch
Yes, and Python suits it best of all. It forgives a beginner a lot: the syntax reads almost like English, and you don't manage memory by hand. School maths and regularity are enough: one or two short lessons a day with practice get results faster than rare weekend marathons. The Python course for beginners is built exactly that way: small steps that add up to a skill.
Sources: BLS, Glassdoor, Stack Overflow Survey 2025 · Data updated: September–November 2026
Sources: ITJobsWatch (UK), Glassdoor (DE, NL), StepStone · Data updated: September–November 2026
Sources: Just Join IT Salary Report 2026 (PL), Levels.fyi (CZ, EE), Glassdoor · Data updated: September–November 2026
Sources: PayScale India, Indeed India, Stack Overflow Survey 2025 · Data updated: September–November 2026
Sources: Stack Overflow Survey 2025, PayScale (BR), PayScale (MX), Robert Half (BR), Indeed (BR) · Data updated: September–November 2026
Sources: Arc.dev Remote Salary 2026, Stack Overflow Survey 2025 · Data updated: September–November 2026
Developers with AI skills earn on average 62% more (PwC AI Jobs Barometer, 2026).
FAQ
Answers to questions about the Python course
Short and honest: what people ask most before they start.
Yes. The course is designed for complete beginners: you don't need to know anything in advance, basic computer skills are enough. You start from the very basics and learn by doing. The first level is free, so you can try it and see that it works for you.
No, Python is considered one of the easiest languages to start with. The syntax is close to plain English and easy to read, and you'll write your first working program on day one. The difficulty grows smoothly, step by step.
No. The course is designed for complete beginners, and you choose the pace: an hour of practice a day is enough to move forward.
It depends on your pace. People learn the basics of Python in 1-3 months, and reach a hireable level in about 6-12 months. At 5 hours a week that's about a year, at 15-20 hours it's faster. You learn at your own pace, with no schedule.
The first level is open for free with no card: 7 lectures and 9 tasks. The whole course opens with a subscription from $30 a month, and the Claude Code AI agent is included in that price. There's also the ALL IN ONE subscription, for all programming courses at once.
The course gives you a foundation: the language basics, Git, tests, working with data and 8 portfolio projects. For a first job you'll also need SQL and web frameworks.
No. School arithmetic is enough to program in Python: logic and problem-solving matter more than maths. Advanced maths is needed only in specific fields like data science and machine learning.
Yes. AI speeds up the work, but someone has to understand the code, check it and give AI tools the right tasks, and that's what a developer does. Python is the main language of AI development, and developers with AI skills earn on average 62% more. In the course you work with the AI mentor from day one, and from module 4 you learn to give tasks to the Claude Code AI agent and review its code.
Eight projects, one in every module: a console quiz, a movie picker, a task manager, a sticker generator built together with the AI agent, a camera that recognizes faces and gestures, a sales report from Excel and PDF, a browser bot and a speed comparison of asyncio, threads and processes.
The course moved to Python 3.15 and got a new program: 8 modules and 78 levels, a project in every module, work with the AI agent, data analysis in pandas, Playwright browser bots, computer vision and parallel code. The previous program stays open as the Python course 2025, and your progress in it is saved. If you're just starting, choose Program 2026.
No. The Claude Code AI agent on CodeGym learning models is already included in the course and ready to work, no subscription of your own needed. You'll need it from module 4: the agent writes code from your assignment, and you learn to give it tasks and check the result.
No. It's more fun with a camera, but all the levels of the module and the “Magic camera” project also work with ready-made video recordings from the course materials. The program works the same with a camera and with a video file.
Not to start. You take the first levels right in the browser, in the built-in WebIDE. Later you'll learn to set up PyCharm and install libraries like pandas and Playwright: that's part of the learning too.
The AI mentor is a smart code check: you press “Check”, and it instantly tells you what's wrong and how to fix it. It's available 24/7, like a personal tutor who never gets tired.
Yes, any time. Your progress is tied to your account and isn't lost.
Programmers are made, not born
They're made through practice. Start the Python course for free
and write your first code today.
first level free, no card