What you will learn
Python is used for data analysis, automation, web servers, science and teaching. Its clean style makes it a favorite first language. This course takes you from printing a line of text to writing a small program that analyzes data.
- Basics: printing, variables, numbers and text.
- Input: programs that ask questions and use the answers.
- Decisions and loops:
if,forandwhile. - Lists and dictionaries: store and look up collections of data.
- Functions: write your own reusable tools.
Real Python, nothing to install
The lessons run genuine Python 3 inside your browser. The first time you run a Python lesson, the page downloads the Python engine (about 5 MB), which can take a few seconds. After that your browser keeps a copy and it starts quickly.
How the lessons work
Type your program and press Run to see its output. Error messages show which line went wrong, and that line is highlighted. Check My Code runs your program and tests the result. For programs that ask for input, the answers come from the Input box under the editor.
Frequently asked questions
Is this Python course free?
Yes. Every lesson is free, with no account and no limits.
Do I need to install Python?
No. Python runs inside the page. The first run downloads the engine, about 5 MB, and after that it is kept by your browser.
Which version of Python is it?
Python 3.12, running through the open-source Pyodide project. What you learn applies to Python on any computer.
Why is the first run slow?
The Python engine has to download and start. That takes a few seconds once. Later runs, and later visits, are fast.
Can my Python code reach the internet or my files?
No. It runs in a sandbox inside your browser with no access to the network, your files or the rest of this site.
Do I get a certificate?
Yes. Finish every lesson to unlock a certificate of completion with your name on it. It is a personal record, not an accredited qualification.