@@ -10,9 +10,6 @@ A practical, example-driven Python repository designed to help you learn Python
1010
1111Each file is self-contained and focuses on a single concept, making the repository suitable for structured learning, revision, or reference.
1212
13- ### 🌐 ** Visit the Interactive Website**
14- Want to follow your progress? Visit the website at [ pythonbyexample.page.gd] ( https://pythonbyexample.page.gd/ )
15-
1613> ** If you like this project, please hit the ⭐ Star button and follow me on GitHub [ @blshaer ] ( https://github.com/blshaer ) !**
1714
1815---
@@ -25,6 +22,7 @@ Want to follow your progress? Visit the website at [pythonbyexample.page.gd](htt
2522- [ Prerequisites] ( #-prerequisites )
2623- [ File Structure] ( #-file-structure )
2724- [ Learning Path] ( #-learning-path )
25+ - [ Projects] ( #-projects )
2826
2927---
3028
@@ -119,21 +117,50 @@ This repository contains a complete Python tutorial designed for both beginners
119117
120118## Getting Started
121119
120+ Follow these steps to clone the repository and set it up in your local editor:
121+
1221221 . ** Clone the repository**
123+ Open your terminal and run:
124+ ``` bash
125+ git clone https://github.com/blshaer/python-by-example.git
126+ cd python-by-example
127+ ```
128+
129+ 2 . ** Set up a Virtual Environment (Recommended)**
130+ It's best practice to keep your projects isolated. Run these commands:
131+ ``` bash
132+ python -m venv venv
133+ # On Windows:
134+ .\v env\S cripts\a ctivate
135+ # On macOS/Linux:
136+ source venv/bin/activate
137+ ```
138+
139+ 3 . ** Install Dependencies**
140+ Install the necessary tools for testing and formatting:
141+ ``` bash
142+ pip install -r requirements.txt
143+ ```
144+
145+ 4 . ** Open in your code editor**
146+ We recommend [ Visual Studio Code] ( https://code.visualstudio.com/ ) . Open the project directly:
123147 ``` bash
124- git clone https://github.com/blshaer/python_review.git
125- cd python_review
148+ code .
126149 ```
127150
128- 2 . ** Start from basics**
151+ 5 . ** Explore and Run**
152+ Navigate to any example, like ` 01_basics ` , and run the file:
129153 ``` bash
130154 cd 01_basics
131155 python 01_print.py
132156 ```
133157
134- 3 . ** Read the comments** — Each section is thoroughly explained
158+ 6 . ** Read the comments** — Detailed explanations are provided inline for every concept!
135159
136- 4 . ** Experiment** — Modify the code and observe the results
160+ 7 . ** Try the Tests** — Go to the new testing module to see how professional code is verified:
161+ ``` bash
162+ pytest 11_testing/01_test_basics.py
163+ ```
137164
138165---
139166
@@ -219,6 +246,7 @@ Key Concepts:
219246<td >
220247
22124810 . [ Best Practices] ( ./10_best_practices/ )
249+ 11 . [ Testing] ( ./11_testing/ )
222250
223251</td >
224252</tr >
@@ -229,11 +257,26 @@ Key Concepts:
229257Beginner → 01_basics → 02_control_flow → 03_loops
230258Intermediate → 04_data_structures → 05_functions → 06_modules
231259Advanced → 07_error_handling → 08_oop → 09_advanced
232- Professional → 10_best_practices
260+ Professional → 10_best_practices → 11_testing
233261```
234262
235263---
236264
265+ ## Projects
266+
267+ Put your skills to the test! Each project includes a ** challenge description** (` README.md ` ) so you can try building it yourself before looking at the solution.
268+
269+ | # | Project | Difficulty | Concepts Applied |
270+ | :--| :--------| :-----------| :-----------------|
271+ | 01 | [ ** Number Guessing Game** ] ( ./projects/01_number_guessing_game/ ) | 🟢 Beginner | Loops, Conditionals, Random module |
272+ | 02 | [ ** Expense Tracker** ] ( ./projects/02_expense_tracker/ ) | 🟡 Intermediate | Dicts, File I/O (JSON), Functions |
273+ | 03 | [ ** Library Management System** ] ( ./projects/03_library_management/ ) | 🟠 Advanced | OOP, Inheritance, Custom Exceptions |
274+ | 04 | [ ** Real-time Weather CLI** ] ( ./projects/04_weather_cli/ ) | 🚀 Professional | API Requests, Decorators, Type Hints |
275+
276+ > 💡 ** Tip:** Read the project ` README.md ` first and try to build it on your own before looking at ` solution.py ` !
277+
278+ ---
279+
237280## Progress Tracker
238281
239282Use this checklist to track your learning progress:
@@ -248,6 +291,13 @@ Use this checklist to track your learning progress:
248291- [ ] ** 08. OOP** — Classes, Init, Inheritance, Polymorphism
249292- [ ] ** 09. Advanced Python** — Comprehensions, Generators, Decorators
250293- [ ] ** 10. Best Practices** — PEP8, Type Hints, Virtual Environments
294+ - [ ] ** 11. Testing** — Unit Tests, Pytest, Assertions
295+
296+ ### 🏗️ Projects
297+ - [ ] ** Project 01** — Number Guessing Game (Beginner)
298+ - [ ] ** Project 02** — Expense Tracker (Intermediate)
299+ - [ ] ** Project 03** — Library Management System (Advanced)
300+ - [ ] ** Project 04** — Real-time Weather CLI (Professional)
251301
252302---
253303
0 commit comments