@@ -5,7 +5,7 @@ This repository is your **step-by-step roadmap** to mastering Python — from th
5
5
6
6
📘 Each section builds on the previous one, so you can follow along in order or jump straight into the topic you need.
7
7
8
- ---
8
+
9
9
10
10
## 🧱 [ Section 1: Fundamentals] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_1_fundamentals )
11
11
@@ -19,7 +19,7 @@ This repository is your **step-by-step roadmap** to mastering Python — from th
19
19
- 💬 ** Comments** – Add notes and explanations inside your code.
20
20
- 🔁 ** Type conversion** – Convert between types like strings, integers, and floats.
21
21
22
- ---
22
+
23
23
24
24
## 🔣 [ Section 2: Operators] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_2_operators )
25
25
@@ -30,7 +30,7 @@ This repository is your **step-by-step roadmap** to mastering Python — from th
30
30
- 🔍 ** Comparison operators** – Compare two values (` == ` , ` != ` , ` < ` , ` > ` , etc.)
31
31
- 🧠 ** Logical operators** – Combine conditions (` and ` , ` or ` , ` not ` )
32
32
33
- ---
33
+
34
34
35
35
## 🔄 [ Section 3: Control Flow] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_3_controlflow )
36
36
@@ -44,7 +44,7 @@ This repository is your **step-by-step roadmap** to mastering Python — from th
44
44
- ⏭️ ** continue** – Skip current iteration and continue looping.
45
45
- 🪟 ** pass** – Placeholder when no action is needed.
46
46
47
- ---
47
+
48
48
49
49
## 📦 [ Section 4: Functions] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_4_functions )
50
50
@@ -57,7 +57,7 @@ This repository is your **step-by-step roadmap** to mastering Python — from th
57
57
- 🧊 ** Lambda Expressions** – Create small anonymous functions.
58
58
- 📄 ** Docstrings** – Document your functions clearly.
59
59
60
- ---
60
+
61
61
62
62
## 📋 [ Section 5: Lists] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_5_List )
63
63
@@ -74,7 +74,7 @@ This repository is your **step-by-step roadmap** to mastering Python — from th
74
74
- 🔄 ** Map, Filter, Reduce** – Transform and filter list elements.
75
75
- 💡 ** List comprehensions** – Create lists quickly and cleanly.
76
76
77
- ---
77
+
78
78
79
79
## 🗂️ [ Section 6: Dictionaries] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_6_Dictionary )
80
80
@@ -83,7 +83,7 @@ This repository is your **step-by-step roadmap** to mastering Python — from th
83
83
- 📁 ** Dictionary** – Store data as keys and values.
84
84
- 🧰 ** Dictionary comprehension** – Build dictionaries dynamically.
85
85
86
- ---
86
+
87
87
88
88
## 🔢 [ Section 7: Sets] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_7_Sets )
89
89
@@ -94,7 +94,7 @@ This repository is your **step-by-step roadmap** to mastering Python — from th
94
94
- ∪ ** Union, Intersection, Difference** – Combine and compare sets.
95
95
- ⊆ ** Subset, Superset, Disjoint sets** – Check relationships between sets.
96
96
97
- ---
97
+
98
98
99
99
## ⚠️ [ Section 8: Exception Handling] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_8_Exception_Handling )
100
100
@@ -104,7 +104,7 @@ This repository is your **step-by-step roadmap** to mastering Python — from th
104
104
- 🧹 ** try…except…finally** – Always run cleanup code.
105
105
- ✅ ** try…except…else** – Run code only if no error occurs.
106
106
107
- ---
107
+
108
108
109
109
## 🔁 [ Section 9: More on Python Loops] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_9_loops_adv )
110
110
@@ -114,7 +114,7 @@ This repository is your **step-by-step roadmap** to mastering Python — from th
114
114
- ⏳ ** while…else** – Run code after a while loop ends.
115
115
- 🔁 ** do…while emulation** – Simulate do…while behavior in Python.
116
116
117
- ---
117
+
118
118
119
119
## 🧰 [ Section 10: More on Python Functions] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_10_More_on_function )
120
120
@@ -126,7 +126,7 @@ This repository is your **step-by-step roadmap** to mastering Python — from th
126
126
- 🔧 ** Partial functions** – Fix some arguments for reuse.
127
127
- 📏 ** Type hints** – Improve readability and enable static type checking.
128
128
129
- ---
129
+
130
130
131
131
## 📁 [ Section 11: Modules & Packages] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_11_Modules_packages.py )
132
132
@@ -138,7 +138,7 @@ This repository is your **step-by-step roadmap** to mastering Python — from th
138
138
- 📁 ** Packages** – Organize modules into folders.
139
139
- 🔒 ** Private functions** – Hide internal implementation.
140
140
141
- ---
141
+
142
142
143
143
## 📄 [ Section 12: Working with Files] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_12_files )
144
144
@@ -151,7 +151,7 @@ This repository is your **step-by-step roadmap** to mastering Python — from th
151
151
- 📊 ** Read and write CSV files**
152
152
- 🗑️ ** Rename and delete files**
153
153
154
- ---
154
+
155
155
156
156
## 🗃️ [ Section 13: Working Directories] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_13_Directory )
157
157
@@ -160,7 +160,7 @@ This repository is your **step-by-step roadmap** to mastering Python — from th
160
160
- 📁 ** Working with directories**
161
161
- 🔍 ** List files in a directory**
162
162
163
- ---
163
+
164
164
165
165
## 💬 [ Section 14: Strings] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_14_strings )
166
166
@@ -170,7 +170,7 @@ This repository is your **step-by-step roadmap** to mastering Python — from th
170
170
- 🧊 ** Raw strings** – Avoid escape character issues.
171
171
- 🧱 ** Backslash usage** – Handle special characters.
172
172
173
- ---
173
+
174
174
175
175
## 🛠️ [ Section 15: Third-party Packages, PIP, and Virtual Environments] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_15_pip_package )
176
176
@@ -213,7 +213,7 @@ Each concept is explained with code examples and best practices for writing clea
213
213
- 🧾 Method overloading via default and keyword arguments
214
214
- 💡 Best practices for readable OOP
215
215
216
- ---
216
+
217
217
218
218
## 🧪 [ Section 17: Special Methods (Dunders)] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_17_Special_methods )
219
219
@@ -226,7 +226,7 @@ Each concept is explained with code examples and best practices for writing clea
226
226
- 🚫 ` __bool__ ` – define truthiness
227
227
- 🗑️ ` __del__ ` – handle object destruction
228
228
229
- ---
229
+
230
230
231
231
## 🔐 [ Section 18: Property] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_18_Property )
232
232
@@ -238,7 +238,7 @@ Each concept is explained with code examples and best practices for writing clea
238
238
- 📝 Read-only properties
239
239
- 🧠 Best practices for encapsulation
240
240
241
- ---
241
+
242
242
243
243
## 🔄 [ Section 19: Inheritance] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_19_Single_inheritance )
244
244
@@ -250,7 +250,7 @@ Each concept is explained with code examples and best practices for writing clea
250
250
- 🧱 Use ` __slots__ ` for memory efficiency
251
251
- 🧻 Abstract base classes with ` abc.ABC `
252
252
253
- ---
253
+
254
254
255
255
## 🔁 [ Section 20: Multiple Inheritance] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_20_Enumeration )
256
256
@@ -262,7 +262,7 @@ Each concept is explained with code examples and best practices for writing clea
262
262
- 🚫 Avoid diamond problem with proper design
263
263
- 🧲 Combine behaviors without deep hierarchies
264
264
265
- ---
265
+
266
266
267
267
## 🧩 [ Section 21: Enumeration] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_21_SOLID_principles )
268
268
@@ -274,7 +274,6 @@ Each concept is explained with code examples and best practices for writing clea
274
274
- 📦 Extend custom enum classes
275
275
- 🧠 Use enums instead of hardcoded strings
276
276
277
- ---
278
277
279
278
## 🧱 [ Section 22: SOLID Principles] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_22_Multiple_inheritance )
280
279
@@ -286,7 +285,7 @@ Each concept is explained with code examples and best practices for writing clea
286
285
- 📁 Interface Segregation Principle
287
286
- 🧠 Dependency Inversion Principle
288
287
289
- ---
288
+
290
289
291
290
## 🧰 [ Section 23: Descriptors] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_23_Descriptors )
292
291
@@ -297,7 +296,7 @@ Each concept is explained with code examples and best practices for writing clea
297
296
- 🧩 Reusable validation and computed properties
298
297
- 🧱 Descriptor examples: type checking, lazy loading
299
298
300
- ---
299
+
301
300
302
301
## 🧪 [ Section 24: Metaprogramming] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_24_Meta_programming )
303
302
@@ -309,7 +308,7 @@ Each concept is explained with code examples and best practices for writing clea
309
308
- 🧱 Inject behavior via metaclass
310
309
- 🧠 Use ` dataclass ` to auto-generate boilerplate
311
310
312
- ---
311
+
313
312
314
313
## 🧾 [ Section 25: Exceptions in OOP] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_25_Exceptions )
315
314
@@ -334,7 +333,7 @@ Each concept is explained with code examples and best practices for writing clea
334
333
- Run parallel tasks using ` multiprocessing ` .
335
334
- Understand single-threaded concurrency via ` asyncio ` .
336
335
337
- ---
336
+
338
337
## 🔁 [ Section 26: Multithreading] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_26_Multithreading )
339
338
🧵 ** Use threads for I/O-bound tasks.**
340
339
- 🧠 ** Processes vs Threads** – Understand differences and when to use each.
@@ -345,26 +344,26 @@ Each concept is explained with code examples and best practices for writing clea
345
344
- 🌙 ** Daemon threads** – Background threads that don’t block program exit.
346
345
- 🧰 ** Thread Pools** – Efficiently manage threads using ` ThreadPoolExecutor ` .
347
346
348
- ---
349
- ## 🔒 [ Section 27: Thread Synchronization Techniques] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_27_Thread_sync )
347
+
348
+ ## 🔒 [ Section 27: Thread Synchronization Techniques] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_27_Thread_Synchronization_Techniques )
350
349
🔐 ** Avoid race conditions and ensure safe access.**
351
350
- 🧱 ** Lock** – Prevent simultaneous access to shared data.
352
351
- 🚦 ** Event** – Communicate between threads (e.g., wait/signal patterns).
353
352
- ⏹️ ** How to stop a thread** – Safely terminate child threads.
354
353
- 🚧 ** Semaphore** – Control number of concurrent threads accessing a resource.
355
354
356
- ---
357
- ## 📥 [ Section 28: Sharing Data Between Threads] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_28_Sharing_data )
355
+
356
+ ## 📥 [ Section 28: Sharing Data Between Threads] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_28_Sharing_Data_Between_Threads )
358
357
📦 ** Exchange data safely across threads.**
359
358
- 🧷 ** Thread-safe Queue** – Use ` queue.Queue ` for safe inter-thread communication.
360
359
361
- ---
360
+
362
361
## 🚀 [ Section 29: Multiprocessing] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_29_Multiprocessing )
363
362
🔌 ** Run CPU-bound tasks in parallel using separate processes.**
364
363
- 🧲 ** Multiprocessing module** – Use ` multiprocessing.Process ` to spawn new processes.
365
364
- 🧰 ** Process Pools** – Manage processes efficiently using ` Pool ` or ` ProcessPoolExecutor ` .
366
365
367
- ---
366
+
368
367
## ⚡ [ Section 30: Async I/O] ( https://github.com/onyxwizard/python-cheatsheet/tree/main/Section_30_Async_IO )
369
368
⚡ ** Write asynchronous, non-blocking code using coroutines.**
370
369
- 🧠 ** Understanding Event Loop** – Core of async programming; manages coroutine execution.
@@ -376,3 +375,5 @@ Each concept is explained with code examples and best practices for writing clea
376
375
- 🎯 ** Future** – Understand ` Future ` objects for eventual results.
377
376
- 🧱 ** Running multiple tasks concurrently with gather()** – Run tasks concurrently using ` asyncio.gather() ` .
378
377
#### 🎉 ** Let’s learn Python together — one concept at a time!**
378
+
379
+ ---
0 commit comments