Learn Python from zero — in a single HTML file.
A self-contained, beautifully designed Python learning resource inspired by Rustlings Atlas. No installations, no frameworks, no build step — just open the file and start learning.
Live site → yaswanthme007.github.io/python-learn
30 lessons across 12 parts, from absolute basics to real-world Python:
| Part | Topics |
|---|---|
| 0 · Foundations | Hello Python, Variables, Numbers & Math |
| 1 · Types & Values | Strings, Booleans & None, Type Conversion |
| 2 · Collections | Lists, Tuples & Sets, Dictionaries |
| 3 · Control Flow | if/elif/else, for loops, while/break/continue |
| 4 · Functions | Defining functions, *args/**kwargs, Lambda |
| 5 · Comprehensions | List, Dict & Set comprehensions |
| 6 · Classes & OOP | Classes, Inheritance, Dunder methods |
| 7 · Error Handling | try/except, Custom exceptions |
| 8 · Iterators | Generators & yield |
| 9 · Decorators | Function decorators |
| 10 · Files & I/O | Files, Context managers, pathlib |
| 11 · The Ecosystem | Modules, Type hints, dataclasses, functools, asyncio |
- Single file — everything lives in
index.html, zero dependencies - Progress tracking — mark lessons complete, saved to
localStorage - Code editor UI — every lesson has a syntax-highlighted code block with expected output
- Fully responsive — sidebar nav collapses to a hamburger menu on mobile
- Smooth animations — section transitions, staggered content entrance, micro-interactions throughout
- Fonts — Fraunces (headings), Space Grotesk (body), JetBrains Mono (code)
- Theme — dark blue, Python blue
#4B9CD3, Python yellow#FFD43B - Background — subtle dot grid
- No frameworks — pure HTML, CSS, and vanilla JavaScript
# Clone and open locally
git clone https://github.com/yaswanthme007/python-learn.git
cd python-learn
open index.html # or just double-click itOr visit the live site directly — no setup needed.
Rustlings Atlas by @rgcsekaraa — the same single-file learning concept, reimagined for Python.