Python course from scratch online: 900+ tasks with code checks | CodeGym
[Go to site: main page, start]

78levels
410lectures
900+tasks
2M+ learners since 2012
Rating4.9 from 1,500+ reviews
1,500+ reviews

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.

A programmer cat at the wheel, a python in glasses and a robot: Python course illustration

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)

Sound like you? Start for free

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.

01

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.

WebIDE: a lecture and a task in the browser, the code editor already set up WebIDE: a lecture and a task in the browser, the code editor already set up
02

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.

Checking a solution: the AI mentor shows what exactly to fix in the code
03

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.

Progress by level: solved tasks and stars Progress by level: solved tasks and stars

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.

8modules
78levels
410lectures
900+tasks
8projects
  1. Commands and the first program
  2. Types, calculations and input
  3. Conditions
  4. Loops
  5. Installing PyCharm and the first run
  6. Lists: a first look
  7. Functions: a first look
  8. The ready-made random and math libraries
  9. Errors and logs
  10. Project “Space quiz”
  1. Lists
  2. List comprehensions and unpacking
  3. Tuples
  4. Sets
  5. Dictionaries and frozendict
  6. Practice: debugging collection errors
  7. Functions: arguments and results
  8. Sorting and functions as values
  9. Generators, iterators and decorators
  10. Project “Movie night”
  1. Classes, objects and encapsulation
  2. Composition and inheritance
  3. Type hints
  4. Dataclasses
  5. Exceptions
  6. Modules, external libraries and uv
  7. Files and directories
  8. JSON and match/case
  9. Project “My to-do list”
  1. Meet Claude Code
  2. Skills and plugins: reports in Excel, PDF and PowerPoint
  3. Git: commit, diff and rolling back the agent's edits
  4. MCP and Playwright: checking in the browser
  5. Context, plan mode and helpers
  6. Branches, worktrees and parallel helpers
  7. CLAUDE.md, /clear and Context7
  8. A task template, a contract and pytest
  9. pytest tests and reviewing the agent's code
  10. Project “Sticker factory”
  1. OpenCV: the first program with a camera
  2. Video stream, pixels and NumPy
  3. Drawing over an image
  4. MediaPipe: recognition without training a model
  5. Hand tracking
  6. Gesture control
  7. Face tracking
  8. Project “Magic camera”
  1. pandas: first data
  2. Filtering and sorting
  3. Data cleaning
  4. Merging tables
  5. Grouping and aggregation
  6. Pivot tables
  7. Excel reports
  8. Data from PDF
  9. Interactive charts
  10. Project “Business under the microscope”
  1. The first Playwright run
  2. HTML and CSS selectors for automation
  3. Finding elements
  4. Actions on the page
  5. Waits and assertions
  6. Collecting data
  7. Crawling pages
  8. Saving, errors and the session
  9. Project “Playwright browser bot”
  1. Concurrency and parallelism
  2. Async/Await: the first coroutines
  3. Asyncio: several tasks at once
  4. Asynchronous HTTP requests
  5. Managing asynchronous tasks
  6. Threads: the first threads
  7. Thread synchronization
  8. ThreadPoolExecutor
  9. Asyncio and threads together
  10. Multiprocessing
  11. The GIL and free-threaded Python
  12. Project “Executor race”
Start for free

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.

Module 1

Space quiz

A console game: asks questions about space, gives three tries and a hint, and adds up the score at the end

inputloopsfunctions
Module 2

Movie night

Picks a film from a catalog by genre and rating, suggests a random one and keeps a list of favourites

dictionariessetssorted
Module 3

My to-do list

A task manager with categories and checkmarks that keeps everything in JSON and remembers the list after a restart

classesdataclassJSON
Module 4

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

Claude CodepytestPillow
Module 5

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

OpenCVMediaPipeNumPy
Module 6

Business under the microscope

Combines sales from Excel and price lists from PDF, calculates revenue and profit and builds a report with charts

pandasopenpyxlPlotly
Module 7

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

PlaywrightJSONlogging
Module 8

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

asyncioThreadPoolExecutormultiprocessing
The first project starts at the first level Start for free no card

You'll master:

Python 3.15PyCharmloggingOOPJSONuvClaude CodeMCPGit and GitHubpytestPillowOpenCVNumPyMediaPipepandasExcel and PDFPlotlyPlaywrightasyncioHTTPXThreads and processesPython without the GIL

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.

Author

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.

Editor

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.

Director

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.

Orchestrator

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.

Claude Code is already in the course No subscription or keys of your own: the agent is already connected, runs on CodeGym learning models and is included in the course price. It works on the site in WebIDE and on your computer.

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 2026Program 2025
Python versionPython 3.15: frozendict, lazy import and Python without the GILPython 3.12
Scope8 modules, 78 levels, 410 lectures, 900+ tasks, 78 tests6 modules, 64 levels, 351 lectures, 817 tasks, 63 tests
Projects8 complete projects, one in every module: from 8 to 17 parts, each one checked1 project: a Selenium bot built along the lectures, unchecked
AIThe AI mentor in tasks and the Claude Code agent, included in the course price: from module 4 you give it tasks and accept its workThe AI mentor in tasks
Developer toolsuv and virtual environments, pytest tests, type hints and mypy, dataclasses, Git in practicepip, unittest tests, the pdb debugger, Git: 3 lectures without tasks
After the basicsData analysis: pandas, Excel, PDF and Plotly charts. A Playwright browser bot, computer vision with OpenCV and MediaPipe, asyncio, threads and processesExcel and pandas, scraping with BeautifulSoup, a Selenium bot, charts, PDF, images and video, Tkinter, algorithms
Who it suitsThose starting nowThose 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.

No card to start Cancel your subscription any time Progress is saved to your account
Free no card

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
Start for free
Subscription from $30 / mo

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
See pricing

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.

2M+ learners
since 2012
4.9 average course rating
from 1,500+ reviews
96% of learners
recommend CodeGym

Reviews

What Python course students say

Quotes from learners' reviews, the long ones shortened.

1,500+ reviews
96% of learners recommend CodeGym
Average rating 4.9 out of 5
5 ★
4 ★
3 ★
2 ★
1 ★
Rated 5 out of 5
“I tried learning Python three times and gave up. Here I finished for the first time. Instant checks don't let you get stuck.”
Anna K.
Python course
Rated 5 out of 5
“I thought print was about the printer. Now I run loops and swear at indentation like a senior.”
Dmitry R.
Python course
Rated 5 out of 5
“Great practice. The AI mentor really explains mistakes instead of just marking them red.”
Maxim S.
Python course
Rated 5 out of 5
“I moved from manual analytics to automating reports with scripts. I save a couple of hours every day.”
Oleg V.
Python course
Rated 5 out of 5
“WebIDE is great. Nothing to install: open the browser and start coding. Perfect for a start.”
Kate L.
Python course
Rated 5 out of 5
“The first levels seemed easy, but then it really gets you hooked. Progress by levels truly motivates.”
Sergey P.
Python course
See all
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

Web services and APIs The back end of sites and apps with Django, FastAPI, Flask
Data and reports Collecting, processing and visualizing data, dashboards and automatic reports
Automation and bots Scripts, scrapers, Telegram bots, integrations between services
AI and machine learning Working with models, AI assistants and services built on them

How much Python developers earn

median, USD a month before tax
Juniorstart
$4,950/mo
Middle2-3 years
$6,050/mo
Senior5+ years
$7,200/mo

Can 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: 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.

The Python course from scratch by CodeGym is an online course for beginners: 78 levels, 900+ tasks with instant checks and 8 projects, with code written right in the browser. Program 2026 runs on Python 3.15: from the language basics to data analysis, browser bots, computer vision and working with an AI agent. The first level is free, full access is by subscription from $30 a month. At 5 hours a week the course takes about a year.
Not sure Python is your language? See other courses:

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