🐍 Version 3.12 · 2024 Edition

Learn Python
From A to Z

A complete, beginner-friendly guide covering everything from your first print("Hello!") to advanced decorators, generators, and real-world projects.

📚 30 Lessons
~20 Hours
🆓 Free Forever

Start Tutorial →
30
Lessons
100+
Code Examples
3
Real Projects
A–Z
Coverage

Learning Tracks

🌱

Beginner

No experience needed. Start with Python basics.

⚙️

Intermediate

Build real programs with control flow & OOP.

🚀

Advanced

Master generators, decorators, APIs & more.

All Lessons

👋
01 · Introduction
What is Python? Why learn it? History & use cases.
💻
02 · Installation
Install Python, set up VS Code, run your first script.
📝
03 · Syntax & Variables
Python syntax rules, variables, naming conventions.
🔢
04 · Data Types
int, float, bool, str, None — Python's core types.
05 · Operators
Arithmetic, comparison, logical, bitwise operators.
💬
06 · Strings
String methods, formatting, slicing, f-strings.
⌨️
07 · Input & Output
Reading user input and printing formatted output.
🔀
08 · Conditionals
if, elif, else — making decisions in Python.
🔄
09 · Loops
for loops, while loops, break, continue, range().
10 · Functions
Defining functions, parameters, return values, scope.
📋
11 · Lists
Creating, indexing, slicing, and modifying lists.
📌
12 · Tuples
Immutable sequences, tuple packing & unpacking.
📖
13 · Dictionaries
Key-value pairs, dict methods, iteration patterns.
🔵
14 · Sets
Unique collections, set operations, frozen sets.
15 · Comprehensions
List, dict, set comprehensions and generator expressions.
📦
16 · Modules
Importing, creating modules, pip & third-party packages.
🗂️
17 · File Handling
Reading and writing files, context managers, paths.
🛡️
18 · Exceptions
try/except, raising errors, custom exceptions.
🧩
19 · OOP — Classes
Classes, objects, methods, __init__, self, dunder.
🌳
20 · Inheritance
Class inheritance, super(), method overriding, MRO.
🔁
21 · Iterators & Generators
__iter__, __next__, yield, lazy evaluation patterns.
🎁
22 · Decorators
Function decorators, wraps, stacking, class decorators.
λ
23 · Lambda & Functional
lambda, map, filter, reduce, functools module.
🔍
24 · Regular Expressions
re module, patterns, groups, search vs match vs findall.
🗓️
25 · Date & Time
datetime module, formatting, timedelta, timezones.
🌐
26 · JSON & APIs
Parsing JSON, requests library, consuming REST APIs.
🧪
27 · Virtual Environments
venv, pip, requirements.txt, project isolation.
🧮
28 · Project: Calculator
Build a command-line calculator with full error handling.
29 · Project: To-Do App
Build a file-backed to-do list app with CLI interface.
🕸️
30 · Project: Web Scraper
Scrape data with requests + BeautifulSoup, export CSV.