13 lessons · Python 3.14 runs in your browser · No account

Learn Python

Python is a general-purpose programming language that reads close to plain English, which makes it a common first language. Each lesson here is short, runs real code on the page, and ends with an exercise the page checks, then a quiz.

Python
name = "World"
print(f"Hello, {name}!")
Output
Hello, World!

Every lesson looks like this. Edit the code, press Run, read the real output.

What you'll learn

Frequently asked questions

Is Python easy to learn?
Python is one of the easier languages to start with. Its syntax reads close to English, and you can try it without installing anything. Getting good at it still takes practice, which is why every lesson here has an exercise.
How long does it take to learn Python?
It depends on how often you practice. The lessons here are short enough that you can finish each one in a single sitting, and the basics stick fastest when you also write small programs of your own.
Can I learn Python on my own for free?
Yes. This course is free, needs no account, and runs in your browser. The official tutorial at docs.python.org is a good companion to it.
Do I need to install anything to follow along?
No. A copy of Python runs inside your browser, so every example works without installing anything. Install Python when you want to run programs outside the browser, and the Installing Python lesson shows how on Windows, macOS and Linux.
Is my progress saved?
Yes, in your browser on this device, with no account. Answer every quiz question in a lesson and that lesson gets a check mark wherever the course lists it. Clearing site data resets your progress, and it does not carry over to another browser or device.
Which version of Python does this course use?
Python 3.14. The examples run in that same version, so the output on the page matches Python 3.14 on your computer, apart from file paths in error messages and the text you type at an input() prompt, which the page does not echo.