This repository is a beginner-friendly Python learning path built from the roadmap.sh Python roadmap. It turns the roadmap into ten short lessons with examples, explanations, and practice-ready notes.
The goal is simple: learn Python step by step, build confidence with the core basics, and keep every lesson small enough to study in one sitting.
- Python syntax and how code is executed
- Variables and core data types
- Conditionals and decision making
- Type casting and input handling
- Exceptions and error handling
- Functions, parameters, and built-in functions
- Loops,
break,continue, and nested repetition - Lists, tuples, and sets
- Dictionaries and dictionary methods
- Strings, slicing, and common string operations
- Caesar ciphers, character shifting, and a first mini-project
| Lesson | Topic | Format |
|---|---|---|
| 1 | Basic Syntax | Markdown guide |
| 2 | Variables and Data Types | Markdown guide |
| 3 | Conditionals | Jupyter notebook + notes |
| 4 | Type Casting | Markdown guide |
| 5 | Exceptions | Markdown guide |
| 6 | Functions & Built-in Functions | Markdown guide + notebook |
| 7 | Loops | Markdown guide + notebook |
| 8 | Lists, Tuples, and Sets | Markdown guide + notebooks |
| 9 | Dictionaries | Markdown guide + notebook |
| 10 | Working with Strings | Markdown guide + notebook |
| Project | Topics | Format |
|---|---|---|
| Secret Code Maker (Caesar Cipher) | Encoding and decoding text, ord() and chr(), loops, conditionals, functions, user input, and while True |
Markdown guide + Python script |
- Start with Lesson 1 to learn how Python reads code line by line.
- Move to Lesson 2 to understand variables and data types.
- Continue with Lesson 3 to practice
if,elif, andelse. - Finish with Lesson 4 to convert values between strings, numbers, and booleans.
- Read Lesson 5 to handle runtime errors with
try,except,else, andfinally. - Finish with Lesson 6 to write reusable functions and explore built-in helpers.
- Finish with Lesson 7 to repeat work with
forandwhileloops, then control flow withbreakandcontinue. - Finish with Lesson 8 to work with collections, including lists, tuples, and sets.
- Finish with Lesson 9 to store and manage key-value data with dictionaries.
- Finish with Lesson 10 to work with strings, slicing, formatting, and common text methods.
- Move to Mini Project 1 to build a Caesar cipher that encodes and decodes messages.
python/
├── README.md
├── assets/
│ └── learn-python-banner.svg
├── lesson1/
│ └── readme.md
├── lesson2/
│ └── readme.md
├── lesson3/
│ ├── lesson3.ipynb
│ └── readme.md
├── lesson4/
│ └── readme.md
├── lesson5/
│ └── readme.md
├── lesson6/
│ └── readme.md
├── lesson7/
│ └── readme.md
├── lesson8/
│ ├── list.ipynb
│ ├── readme.md
│ ├── sets.ipynb
│ ├── task.py
│ └── tuple.ipynb
├── lesson9/
│ ├── dictionary.ipynb
│ ├── readme.md
│ └── task.py
└── lesson10/
├── readme.md
├── strings.ipynb
└── task.py
└── mini-project_1/
├── readme.md
└── Secret Code Maker (Caesar Cipher).py
- Read the root README first for the full path.
- Open each lesson in order and follow the examples.
- Practice the code snippets in your own editor or notebook.
- Use the lesson notes as a reference while you build small exercises.
This structure keeps the roadmap focused on the essentials and makes it easy to publish on GitHub as a learning series. The banner and badges provide a clean front page, while the lesson folders keep the teaching material organized.
If you want, I can also make each lesson page link back to this main README and add next/previous navigation between lessons.