Learn Python by writing it, right in your browser
Short lessons with code you can run and change on every page, and exercises that check your solution the moment you submit it. Nothing to install. Start for free.
- No signup needed to try
- Every lesson free to read and run
- By the author of the Python Land tutorial
def greet(name): # Change the greeting and run it again return f"Hello, {name}!" print(greet("Python Land"))OutputHello, Python Land!
✓ Exercise passed: greet() returns the right text
New on the blog
Articles about Python and its ecosystem, including Package of the week: one useful package from PyPI, with real examples.
NewPython WebSockets: Build a Real-Time Server and ClientLearn Python WebSockets with the websockets library.
NewPython Socket Programming: A Client and Server, Step by StepLearn Python socket programming with a working TCP server and client: send bytes, handle partial reads, frame messages and serve several clients.
NewPython Requests: How to Make HTTP Requests the Right WayPython requests by example: GET and POST, query parameters, headers, JSON, status codes, timeouts, sessions, and fixing "No module named 'requests'".
Package of the weekNewPackage of the week: rich, for colour, tables and readable tracebacksrich makes Python terminal output readable: pretty-printed data, tables, progress bars and tracebacks that show your variables.
Python And AI: Why Learning Python Might Be A Good IdeaWhy is Python everywhere in AI?
Comparing 3 Popular Python REST APIs: Which One To Pick?Learn the pros and cons of creating a Python REST API using FastAPI, Flask, and Django Rest Framework so you can make an informed decision.
Popular free tutorials
Prefer to read? The Python Land tutorials are free and cover the basics and the tools around them.
How the courses work
- Read a short explanationOne idea at a time, in plain language, with an example you can run.
- Write the code yourselfEvery example runs in your browser. Change it, break it, fix it.
- Get instant feedbackExercises are checked when you submit, and Monty, the AI helper, explains errors and gives hints.
Free or Guided. Start free and keep going as long as you like. Guided adds more help from Monty, including code reviews, certificates of completion, no daily lesson limit and no ads.
“I had no prior experience, now I can not only build small programs, but also have a much better idea of what I’ll learn next. This is a great way to get into programming!”
Sebastiaan, 2026
Ready to run your first line of Python?
The first lesson takes a few minutes and needs nothing but this browser.