Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
375 lines (362 loc) · 23.4 KB
/
Copy pathindex.html
File metadata and controls
375 lines (362 loc) · 23.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Python for Everyone — Free, Interactive Python Course</title>
<meta name="description" content="A free, interactive Python course for everyone — kids, career-switchers, and working professionals. Self-checking quizzes, real projects, interview prep.">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🐍</text></svg>">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/style.css">
</head>
<body>
<button id="sidebar-toggle" class="sidebar-toggle" aria-label="Toggle chapter list" aria-expanded="false">☰ Chapters</button>
<aside id="chapter-sidebar" class="sidebar" data-root="" aria-label="Chapter navigation"></aside>
<div class="sidebar-scrim" id="sidebar-scrim"></div>
<header class="top-bar">
<div class="page">
<a href="index.html" class="brand">🐍 Python for Everyone</a>
<nav>
<a href="docs/curriculum/index.html">Roadmap</a>
<a href="https://github.com/TechNaom/python-for-everyone">GitHub</a>
</nav>
</div>
</header>
<section class="hero">
<div class="page">
<span class="hero-eyebrow">✨ 100% Free · No Sign-Up</span>
<h1>A hybrid course: real Python fundamentals, taught alongside real AI-assisted practice.</h1>
<p class="lede">
You still learn to write and reason about Python the traditional way —
no shortcuts on the fundamentals. Then every chapter adds the skill
that actually matters on the job now: directing an AI assistant well,
and catching it when its code is confidently wrong. Neither half works
without the other.
</p>
<div class="hero-badges">
<span>🧠 Plain-language first</span>
<span>✅ Self-checking quizzes</span>
<span>🛠️ Real projects</span>
<span>💼 Interview-ready</span>
<span>🤖 AI-paired practice</span>
</div>
<a href="chapters/chapter-01-first-program/lesson.html" class="btn-primary">Start Chapter 1 →</a>
<a href="docs/curriculum/index.html" class="btn-secondary">View the roadmap</a>
<div class="hero-stats">
<div><strong>33</strong><span>chapters live</span></div>
<div><strong>6</strong><span>modules, complete</span></div>
<div><strong>150+</strong><span>practice problems</span></div>
<div><strong>$0</strong><span>cost, ever</span></div>
</div>
</div>
</section>
<main class="page">
<h2>Why this course is different</h2>
<div class="feature-grid">
<div class="feature-card">
<span class="icon">📘</span>
<h3>Every term explained</h3>
<p>"What is...?" boxes define new words the moment they appear — no silent jargon.</p>
</div>
<div class="feature-card">
<span class="icon">✅</span>
<h3>Instant-check quizzes</h3>
<p>Fill in the blank, hit Check, and know immediately — no waiting, no backend, nothing tracked.</p>
</div>
<div class="feature-card">
<span class="icon">🔬</span>
<h3>Go Deeper, if you want</h3>
<p>Optional sections give the full mechanism for readers who want more rigor — skip them if you don't.</p>
</div>
<div class="feature-card">
<span class="icon">🛠️</span>
<h3>Real, fun projects</h3>
<p>Every chapter ends with something genuinely worth building, not a throwaway toy example.</p>
</div>
<div class="feature-card">
<span class="icon">🤖</span>
<h3>Think first, then prompt</h3>
<p>Newer chapters show the reasoning an experienced developer works through before writing code, then have you write the prompt yourself before revealing a strong one — a skill this course now builds on purpose, not just Python syntax. <a href="chapters/chapter-25-memory-management/lesson.html">See it in Chapter 25</a>.</p>
</div>
<div class="feature-card">
<span class="icon">🕵️</span>
<h3>Catch the AI's mistakes</h3>
<p>Each project pairs a solo build with an AI-paired version that has real, subtle bugs planted in it — the point isn't the code, it's learning to review AI output like it might be wrong, because it sometimes is.</p>
</div>
<div class="feature-card">
<span class="icon">💼</span>
<h3>Interview prep built in</h3>
<p>Strong-answer / red-flag / follow-up breakdowns for every chapter's core concepts.</p>
</div>
<div class="feature-card">
<span class="icon">🌍</span>
<h3>Open source, forever</h3>
<p>MIT licensed. Clone it, fork it, use it for your own classroom or study group.</p>
</div>
</div>
<div class="hook">
A course that only teaches "type this syntax" is already behind — AI writes syntax faster than any human. A course that only teaches "prompt an AI" produces people who can't tell when the AI is wrong. This course is built as neither alone: you learn Python the traditional way first — by writing it yourself, understanding why it works, getting it wrong and fixing it — and only then does each chapter ask you to direct an AI at the same problem, and to review its answer like you don't trust it yet. That order matters. Judgment about AI-generated code has to come from somewhere, and it comes from having done the work without AI first.
</div>
<h2>Chapters</h2>
<div class="chapter-grid">
<a class="chapter-card module-1" data-chapter-link="chapter-01" href="chapters/chapter-01-first-program/lesson.html">
<span class="chapter-card-icon">👋</span>
<span class="chapter-card-num">Chapter 1</span>
<h3>Your First Python Program</h3>
<p>print() · variables · types · input()</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-1" data-chapter-link="chapter-02" href="chapters/chapter-02-variables-data-types/lesson.html">
<span class="chapter-card-icon">🏷️</span>
<span class="chapter-card-num">Chapter 2</span>
<h3>Variables & Data Types</h3>
<p>dynamic typing · type() / id() · conversion</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-1" data-chapter-link="chapter-03" href="chapters/chapter-03-operators/lesson.html">
<span class="chapter-card-icon">🧮</span>
<span class="chapter-card-num">Chapter 3</span>
<h3>Operators</h3>
<p>arithmetic · relational & logical · bitwise · is / in</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-1" data-chapter-link="chapter-04" href="chapters/chapter-04-control-flow/lesson.html">
<span class="chapter-card-icon">🚦</span>
<span class="chapter-card-num">Chapter 4</span>
<h3>Control Flow</h3>
<p>if / elif / else · nested if</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-1" data-chapter-link="chapter-05" href="chapters/chapter-05-loops/lesson.html">
<span class="chapter-card-icon">🔁</span>
<span class="chapter-card-num">Chapter 5</span>
<h3>Loops</h3>
<p>while · for & range() · break / continue</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-2" data-chapter-link="chapter-06" href="chapters/chapter-06-strings-deep-dive/lesson.html">
<span class="chapter-card-icon">🧵</span>
<span class="chapter-card-num">Chapter 6</span>
<h3>Strings Deep Dive</h3>
<p>indexing & slicing · string methods · f-strings · validation</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-2" data-chapter-link="chapter-07" href="chapters/chapter-07-lists-tuples/lesson.html">
<span class="chapter-card-icon">🧺</span>
<span class="chapter-card-num">Chapter 7</span>
<h3>Lists & Tuples</h3>
<p>list methods · tuples & unpacking · nested lists · copying pitfalls</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-2" data-chapter-link="chapter-08" href="chapters/chapter-08-dictionaries-sets/lesson.html">
<span class="chapter-card-icon">📚</span>
<span class="chapter-card-num">Chapter 8</span>
<h3>Dictionaries & Sets</h3>
<p>key-value pairs · dict methods · set operations · nested records</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-2" data-chapter-link="chapter-09" href="chapters/chapter-09-comprehensions-lambda/lesson.html">
<span class="chapter-card-icon">🔀</span>
<span class="chapter-card-num">Chapter 9</span>
<h3>Comprehensions, Lambda & Functional Tools</h3>
<p>list/dict/set comprehensions · lambda · map/filter/sorted</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-2" data-chapter-link="chapter-10" href="chapters/chapter-10-functions-deep-dive/lesson.html">
<span class="chapter-card-icon">🧩</span>
<span class="chapter-card-num">Chapter 10</span>
<h3>Functions Deep Dive</h3>
<p>def & defaults · *args/**kwargs · scope · recursion · closures · decorators</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-3" data-chapter-link="chapter-11" href="chapters/chapter-11-modules-packages/lesson.html">
<span class="chapter-card-icon">📦</span>
<span class="chapter-card-num">Chapter 11</span>
<h3>Modules & Packages</h3>
<p>import variations · math · datetime · random</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-3" data-chapter-link="chapter-12" href="chapters/chapter-12-exception-handling/lesson.html">
<span class="chapter-card-icon">🚨</span>
<span class="chapter-card-num">Chapter 12</span>
<h3>Exception Handling</h3>
<p>try/except/finally · raising exceptions · custom exception classes</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-3" data-chapter-link="chapter-13" href="chapters/chapter-13-file-handling-csv/lesson.html">
<span class="chapter-card-icon">📄</span>
<span class="chapter-card-num">Chapter 13</span>
<h3>File Handling & CSV</h3>
<p>reading & writing files · the csv module · file-related exceptions</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-3" data-chapter-link="chapter-14" href="chapters/chapter-14-oop-basics/lesson.html">
<span class="chapter-card-icon">🧱</span>
<span class="chapter-card-num">Chapter 14</span>
<h3>OOP Basics</h3>
<p>classes & objects · __init__ · instance methods · dunder methods</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-3" data-chapter-link="chapter-15" href="chapters/chapter-15-oop-deeper/lesson.html">
<span class="chapter-card-icon">🏦</span>
<span class="chapter-card-num">Chapter 15</span>
<h3>OOP Deeper</h3>
<p>@staticmethod & @classmethod · encapsulation · @property getters & setters</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-3" data-chapter-link="chapter-16" href="chapters/chapter-16-inheritance-polymorphism/lesson.html">
<span class="chapter-card-icon">🚗</span>
<span class="chapter-card-num">Chapter 16</span>
<h3>Inheritance & Polymorphism</h3>
<p>class Child(Parent) · super() · method overriding · polymorphism</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-4" data-chapter-link="chapter-17" href="chapters/chapter-17-generators-iterators-context-managers/lesson.html">
<span class="chapter-card-icon">🔄</span>
<span class="chapter-card-num">Chapter 17</span>
<h3>Generators, Iterators & Context Managers</h3>
<p>yield & lazy evaluation · the with protocol · custom context managers</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-4" data-chapter-link="chapter-18" href="chapters/chapter-18-regular-expressions/lesson.html">
<span class="chapter-card-icon">🔍</span>
<span class="chapter-card-num">Chapter 18</span>
<h3>Regular Expressions</h3>
<p>pattern matching with re · groups & named groups · re.sub()/re.split()</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-4" data-chapter-link="chapter-19" href="chapters/chapter-19-apis-json/lesson.html">
<span class="chapter-card-icon">🌐</span>
<span class="chapter-card-num">Chapter 19</span>
<h3>Working with APIs & JSON</h3>
<p>requests basics · json.loads()/dumps() · nested JSON · the fetch-parse-format pipeline</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-4" data-chapter-link="chapter-20" href="chapters/chapter-20-multithreading/lesson.html">
<span class="chapter-card-icon">🧵</span>
<span class="chapter-card-num">Chapter 20</span>
<h3>Multithreading</h3>
<p>threading.Thread & the GIL · race conditions & Lock · ThreadPoolExecutor</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-4" data-chapter-link="chapter-21" href="chapters/chapter-21-databases/lesson.html">
<span class="chapter-card-icon">🗄️</span>
<span class="chapter-card-num">Chapter 21</span>
<h3>Working with Databases</h3>
<p>MySQL & mysql-connector-python · MongoDB & pymongo · parameterized queries & SQL injection</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-5" data-chapter-link="chapter-22" href="chapters/chapter-22-web-apis-flask-fastapi/lesson.html">
<span class="chapter-card-icon">🌐</span>
<span class="chapter-card-num">Chapter 22</span>
<h3>Building Web Apps & APIs</h3>
<p>Flask routes & render_template · FastAPI path/query params & Pydantic · automatic /docs</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-5" data-chapter-link="chapter-23" href="chapters/chapter-23-numpy-data-analysis/lesson.html">
<span class="chapter-card-icon">🔢</span>
<span class="chapter-card-num">Chapter 23</span>
<h3>NumPy for Data Analysis</h3>
<p>Vectorized arrays · boolean masking · broadcasting · axis= aggregates</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-5" data-chapter-link="chapter-24" href="chapters/chapter-24-pandas-data-analysis/lesson.html">
<span class="chapter-card-icon">🐼</span>
<span class="chapter-card-num">Chapter 24</span>
<h3>Pandas for Data Analysis</h3>
<p>DataFrames & Series · read_csv() · .loc[] vs .iloc[] · groupby & aggregation</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-5" data-chapter-link="chapter-25" href="chapters/chapter-25-memory-management/lesson.html">
<span class="chapter-card-icon">🧠</span>
<span class="chapter-card-num">Chapter 25</span>
<h3>Memory Management in Python</h3>
<p>Reference counting & the cyclic garbage collector · the mutable-default-argument gotcha · __slots__ · tracemalloc profiling</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-5" data-chapter-link="chapter-26" href="chapters/chapter-26-debugging-production-issues/lesson.html">
<span class="chapter-card-icon">🧯</span>
<span class="chapter-card-num">Chapter 26</span>
<h3>Debugging Production Issues</h3>
<p>An 80-issue catalog of real production bugs across 8 categories — symptom, root cause, fix, and a runnable repro for every single one.</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-5" data-chapter-link="chapter-27" href="chapters/chapter-27-testing-your-code/lesson.html">
<span class="chapter-card-icon">✅</span>
<span class="chapter-card-num">Chapter 27</span>
<h3>Testing Your Code</h3>
<p>unittest & pytest · fixtures and setup/teardown · mocking with unittest.mock · the AAA pattern & what good test coverage actually means</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-5" data-chapter-link="chapter-28" href="chapters/chapter-28-git-fundamentals/lesson.html">
<span class="chapter-card-icon">🌿</span>
<span class="chapter-card-num">Chapter 28</span>
<h3>Git Fundamentals</h3>
<p>The core workflow · branching & merging · resolving real conflicts by hand · rebase · undoing things safely with reset, revert, and reflog</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-5" data-chapter-link="chapter-29" href="chapters/chapter-29-github-collaboration/lesson.html">
<span class="chapter-card-icon">🐙</span>
<span class="chapter-card-num">Chapter 29</span>
<h3>GitHub & Collaboration</h3>
<p>Remotes, forks & pull requests · giving and receiving code review · issues & project workflow · a real end-to-end collaboration scenario</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-5" data-chapter-link="chapter-30" href="chapters/chapter-30-cicd-pipelines/lesson.html">
<span class="chapter-card-icon">⚙️</span>
<span class="chapter-card-num">Chapter 30</span>
<h3>CI/CD Pipelines</h3>
<p>GitHub Actions workflow YAML · a real lint + test job with a matrix strategy and pip caching · status checks & branch protection</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-5" data-chapter-link="chapter-31" href="chapters/chapter-31-professional-python/lesson.html">
<span class="chapter-card-icon">📦</span>
<span class="chapter-card-num">Chapter 31</span>
<h3>Professional Python</h3>
<p>Virtual environments · the logging module · building a real CLI with argparse · pyproject.toml & packaging a pip-installable tool</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-5" data-chapter-link="chapter-32" href="chapters/chapter-32-capstone-projects/lesson.html">
<span class="chapter-card-icon">🏆</span>
<span class="chapter-card-num">Chapter 32</span>
<h3>Capstone Projects</h3>
<p>5 full capstone roadmaps · a Task API, a Data CLI, an Ops Toolkit, a Finance Tracker, and an Open-Source Contribution Simulation · how to scope and write about a portfolio project</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
<a class="chapter-card module-5" data-chapter-link="chapter-33" href="chapters/chapter-33-interview-career-prep/lesson.html">
<span class="chapter-card-icon">🎯</span>
<span class="chapter-card-num">Chapter 33</span>
<h3>Interview & Career Prep</h3>
<p>Turning this course into a resume & portfolio · the STAR method · live-coding interview strategy · a real mock-interview + portfolio-checklist CLI tool</p>
<span class="chapter-card-cta">Start learning <span aria-hidden="true">→</span></span>
</a>
</div>
<h2>How to use this course</h2>
<ul>
<li>Read the lesson, take the quiz, do the exercises, then build the project — in that order.</li>
<li>Every quiz question has its own <strong>Check</strong> button, so you get instant feedback without submitting anything or waiting for a grader.</li>
<li>"Go Deeper" boxes are optional — skip them on your first pass if you just want the essentials, come back later if you want the full picture.</li>
<li>Running the Python code requires <a href="https://www.python.org/downloads/">Python 3</a> installed on your computer — everything else (lessons, quizzes) works right in this browser.</li>
<li><strong>On chapters with the GenAI prompt box</strong> (Chapter 25 onward): after you understand a worked example on your own, write the prompt you'd give an AI assistant to build it, then reveal a strong reference prompt to compare against — try your own in Claude, ChatGPT, or whatever you use, and see how close you got. On the project's "AI-paired" page, do the reverse: read an AI-generated solution skeptically and try to find its planted bugs before revealing them.</li>
</ul>
<h2>Course roadmap</h2>
<p>
All 33 chapters across 6 modules are complete, every one built to the
exact same tested format as Chapter 1. See the full chapter-by-chapter
breakdown in <a href="docs/curriculum/index.html">the roadmap page</a>.
</p>
</main>
<footer class="site-footer">
<div class="page">
<span>🐍 Python for Everyone — free & open source, MIT licensed.</span>
<span><a href="https://github.com/TechNaom/python-for-everyone">github.com/TechNaom/python-for-everyone</a></span>
<span class="footer-brand-credit">Built by Manohar Papasani</span>
</div>
</footer>
<script src="assets/progress.js"></script>
<script src="assets/chapters-data.js"></script>
<script src="assets/sidebar.js"></script>
</body>
</html>