33 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 code 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. The course is free and needs no account, and every lesson runs real Python on the page. 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 on each lesson page, so every runnable example and exercise works without installing anything. A few extras, such as importing your own module or converting named time zones, need Python on your own computer, and the Installing Python lesson shows how to set it up on Windows, macOS and Linux.
Is my progress saved?
Yes, 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. Progress is tied to the browser that saved it, so it does not carry over to another browser or device, and clearing site data resets it.
Which version of Python does this course use?
The examples run on Python 3.14 and give the same output on 3.15, the newest release, apart from a few differences the lessons point out. To run programs on your own computer, install 3.15. Error messages there show your own file paths, and input() waits for you to type instead of reading a lesson's input box.