Python Tutorial¶
Python is one of the easiest programming languages to learn — and one of the most powerful. It's used everywhere: web apps, AI, data science, automation, scripting.
This tutorial covers everything you need to be productive in Python, from your first print("Hello") to writing your own decorators and classes. Every code block has a ▶ Run button — you can edit and execute the code right in your browser, no installation required.
Topics¶
| # | Topic | Read |
|---|---|---|
| 1 | Introduction — Hello world, indentation | 01-introduction |
| 2 | Variables, Data Types & Literals | 02-variables-types-literals |
| 3 | Comments, Input & Type Conversion | 03-comments-input-output |
| 4 | Operators | 04-operators |
| 5 | Conditional Statements (if / elif / else) |
05-conditionals |
| 6 | Loops — for, while, break, continue |
06-loops |
| 7 | Functions, Recursion, Lambda, Map/Filter/Reduce | 07-functions |
| 8 | Strings | 08-strings |
| 9 | Lists | [09-lists.md) |
| 10 | Tuples & Sets | 10-tuples-sets |
| 11 | Dictionaries | 11-dictionaries |
| 12 | Modules & Built-in Functions | 12-modules-builtins |
| 13 | Object-Oriented Programming (OOP) | 13-oop |
| 14 | File Handling | 14-file-handling |
| 15 | Exception Handling | 15-exception-handling |
| 16 | Iterators, Generators & Decorators | 16-iterators-generators-decorators |
How this tutorial is organized¶
Each topic follows the same beginner-friendly format:
- Short intro — what it is, why it matters.
- Runnable examples — every code block has a ▶ Run button. Edit and re-run freely.
- Common pitfalls — what beginners typically get wrong.
- Mini-project — a small real example using the concept.
- Next link — pointer to the next topic.
Prerequisites¶
None. If you can use a keyboard and a browser, you can do this tutorial.
Tips for learning¶
- Read, then DO. Don't just read examples — change them, break them, see what happens.
- One topic per session. Don't try to learn it all in a day.
- Type the code yourself. Copy-paste teaches you nothing.
- Make tiny projects. Apply each new concept to a small problem of your own.
Ready? → Start with Introduction