A complete, self-paced Python course, from zero to advanced level, designed for independent learning without needing videos.
Each lesson is a complete unit including conceptual explanation, runnable examples, exercises, an answer key, and a quiz.
This repository is made up of three parts that should be studied in sequence. Lesson numbers are continuous across the whole repo (1 to 15) so the learning path is clear and unambiguous.
| Part | Title | Lessons | Description |
|---|---|---|---|
| π 01-python-fundamentals | Python Fundamentals | Lessons 1β5 | Python basics, for people with no programming experience |
| π 02-python-intermediate | Python Intermediate | Lessons 6β10 | Data structures, functions, and error handling |
| π 03-python-advanced | Python Advanced | Lessons 11β15 | Object-oriented programming, special methods, and generators |
| # | Lesson | Topic |
|---|---|---|
| 01 | Lesson-01-Your-First-Program | print(), comments, program execution order |
| 02 | Lesson-02-Variables-and-Data-Types | Variables, int, float, str, bool, type() |
| 03 | Lesson-03-Working-with-Numbers | Arithmetic operators, integer division, modulus, exponentiation |
| 04 | Lesson-04-Type-Conversion | int(), float(), str(), bool() and type conversion notes |
| 05 | Lesson-05-Comparison-and-Boolean-Logic | ==, !=, <, >, and, or, not |
π Quick reference: CheatSheet-Part-01.md
| # | Lesson | Topic |
|---|---|---|
| 06 | Lesson-06-Sets-and-Operations | Sets and set operations |
| 07 | Lesson-07-Defining-Functions | Defining functions |
| 08 | Lesson-08-Arguments-and-Scope | Arguments and variable scope |
| 09 | Lesson-09-Higher-Order-Functions | Higher-order functions |
| 10 | Lesson-10-Try-and-Except | Error handling with try and except |
π Quick reference: CheatSheet-Part-02.md
| # | Lesson | Topic |
|---|---|---|
| 11 | Lesson-11-Classes-and-Objects | Classes and objects |
| 12 | Lesson-12-Inheritance-and-Polymorphism | Inheritance and polymorphism |
| 13 | Lesson-13-Special-Methods | Special methods / dunder methods |
| 14 | Lesson-14-Generators-and-Yield | Generators and yield |
| 15 | Lesson-15-Generator-Expressions | Generator expressions |
π Quick reference: CheatSheet-Part-03.md
Every Lesson-XX-Topic-Name folder contains exactly these files:
Lesson-XX-Topic-Name/
βββ lesson.md Full lesson: concepts, examples, common mistakes
βββ examples.py All lesson examples, ready to run
βββ exercise.md Hands-on exercises (easy to hard) β questions only
βββ solution.py Complete, explained solution for each exercise
βββ quiz.md End-of-lesson quiz with answer key
- Read
lesson.mdall the way through. - Run
examples.pyyourself and experiment with changing values. - Solve the exercises in
exercise.mdwithout looking at the solution. - Compare your answers with
solution.py. - Take the
quiz.mdto make sure you've learned the material. - Move on to the next lesson following the continuous numbering (1 to 15).
Note: each section (fundamentals / intermediate / advanced) also has its own dedicated
README.md, which is the original, more detailed version of that section's description.
- Python 3 installed (
python3 --version) - A text editor
- A terminal / command line
No other software or accounts are required.
This course is provided solely for personal, self-study use.