Why PythonMates exists
Python is the base of modern AI. Learning it properly is still worth it — maybe more than ever.
PythonMates started as a set of Python tutorials. It's now a free, modern Python academy: short lessons with code you can run in your browser, exercises that check your answer and quizzes that tell you when you're ready to move on.
How lessons are made
- Every lesson starts with a short, direct answer, then explains with examples.
- All examples and exercise solutions are run and their output checked before publishing.
- Code follows current Python style: f-strings, snake_case, type hints where they help. Lessons are tested on Python 3.15.
- Code runs in your browser with Pyodide, a version of Python built for the web. Nothing is sent to a server.
Learning Python in the age of AI
AI assistants can write a lot of code. To trust that code you need to read it, test it and know when it's wrong. That's exactly what these lessons train. PythonMate, an AI tutor that knows each lesson, is in development.
Who writes it
I'm Saurabh Jaiswal — a freelance AI consultant and the author of AI for Real Work. I've used Python for more than 15 years, from defence research to banks and tech companies, and spoke at PyCon. Connect on LinkedIn.
The mates family
PythonMates teaches Python. AIMates helps professionals use AI tools at work. Both are free to use.