24
Lessons written
10
Sections
36
Lessons planned
10
Projects & games
🛠️ Project
| Code | Lesson | Type | Milestone |
|---|---|---|---|
| 01 | Your First Function: def and Calling ItGive a block of code a name, then use that name as often as you like. | ||
| 02 | Parameters: Passing Data InOne function, many jobs — send it different values each time you call it. | ||
| 03 | Return Values: Sending an Answer BackThe difference between a function that shows and one that gives — and why it matters. | ||
| 04 | Default and Keyword ArgumentsSensible defaults, arguments named at the call, and the order rules that trip everyone. | ||
| 05 | Scope: Where a Name LivesWhy the function cannot see your variable, and why that is a feature. | ||
| 06 | Project: Your Own Function ToolboxSix functions, one menu, and a file you will reuse in every later project. | 🛠️ Project |
| Code | Lesson | Type | Milestone |
|---|---|---|---|
| 01 | Access: Index, Negative Index, SlicingReach any item, count from the back, and take a run of items at once. | ||
| 02 | Change: Assign, Insert, Replace a SliceLists are mutable — edit in place instead of rebuilding. | ||
| 03 | Add & Remove: append, insert, pop, remove, delFive ways to grow and shrink a list, and when each is the right one. | ||
| 04 | Search & Count: in, index, count, lenAsk a list what it holds without looping by hand. | ||
| 05 | Sorting: sort vs sorted, reverse, key=Order a list by anything you like — length, price, last letter. | ||
| 06 | Project: A CRUD List ManagerAdd, view, edit and delete — the four operations behind every app. | 🛠️ Project |
| Code | Lesson | Type | Milestone |
|---|---|---|---|
| 01 | Key–Value Pairs: [] vs get()Build your first dictionary, and look things up without crashing. | ⏳ Planned | |
| 02 | Change & Add: assignment, update, setdefaultOne syntax adds and edits — which is either handy or a trap. | ⏳ Planned | |
| 03 | Remove: pop, popitem, del, clearTake pairs out safely, and get the value back as you go. | ⏳ Planned | |
| 04 | Loop It: keys, values, items, inWalk a dictionary properly, and test membership before you read. | ⏳ Planned | |
| 05 | Nesting: Dictionaries Inside ListsOne dictionary per student, all of them in a list — how real data looks. | ⏳ Planned | |
| 06 | Project: A Phone Book You Can EditSearch, add, update and delete records — with no crash on a missing name. | ⏳ Planned | 🛠️ Project |
| Code | Lesson | Type | Milestone |
|---|---|---|---|
| 01 | Reading a File: open and withThree ways to read, and the one line that closes the file for you. | ⏳ Planned | |
| 02 | Writing & Appending: "w" vs "a"Save text to disk — and know which mode wipes the file. | ⏳ Planned | |
| 03 | Line by Line: strip, split, and LoopsTurn a text file into data you can actually work with. | ⏳ Planned | |
| 04 | Records: Saving a Table of DataOne line per record, split by commas — a CSV by hand. | ⏳ Planned | |
| 05 | When the File Is Missingtry / except FileNotFoundError, and checking before you open. | ⏳ Planned | |
| 06 | Project: A Notebook That RemembersWrite notes, list them, delete one — all still there tomorrow. | ⏳ Planned | 🛠️ Project |
| Code | Lesson | Type | Milestone |
|---|---|---|---|
| 01 | Classes and Objects: The Blueprint IdeaOne class, many objects — and what that actually buys you. | ||
| 02 | Attributes and __init__Give every object its own data at the moment it is created. | ||
| 03 | Methods: Behaviour That Belongs to the ObjectFunctions with self, and why that first parameter is there. | ||
| 04 | Many Objects, One ListBuild a list of objects and loop over it — the pattern behind every game. | ||
| 05 | Inheritance and super()A new class that keeps everything the old one had, and changes one thing. | ||
| 06 | Project: A Class-Based InventoryItems, quantities and behaviour in one place, instead of three lists. | 🛠️ Project |
| Code | Lesson | Type | Milestone |
|---|---|---|---|
| 01 | Index and Slice: Reaching Into TextTake one letter or a run of them, counting from either end. | ||
| 02 | Cleaning Up: strip, lower, upper, replaceMake messy typing safe to compare before your program trusts it. | ||
| 03 | split and join: Text Becomes a ListTurn a sentence into words, work on the words, put it back together. | ||
| 04 | f-strings: Building Readable OutputDrop values straight into text, and line up a column of $ prices. | ||
| 05 | Searching & Checking: in, find, startswith, isdigitAsk text what it holds before you act on it — no crash, no guessing. | ||
| 06 | Project: A Receipt FormatterMessy order lines in, a tidy aligned receipt out. | 🛠️ Project |
| Code | Lesson | Type | Milestone |
|---|---|---|---|
| 01 | Reading a TracebackThe last line names the problem, the rest tells you where it happened. | ⏳ Planned | |
| 02 | try / except: Catching What You ExpectHandle the failure you can see coming, and let the rest be loud. | ⏳ Planned | |
| 03 | The Five Errors You Will Actually MeetValueError, TypeError, IndexError, KeyError, ZeroDivisionError. | ⏳ Planned | |
| 04 | else, finally and Tidying UpRun something only when nothing failed — and something else regardless. | ⏳ Planned | |
| 05 | raise: Failing on PurposeReject bad data at the door instead of ten lines later. | ⏳ Planned | |
| 06 | Project: A Calculator That Never CrashesWhatever the user types, it answers or explains — it never dies. | ⏳ Planned | 🛠️ Project |
| Code | Lesson | Type | Milestone |
|---|---|---|---|
| 01 | List Comprehensions: One Line, One LoopThe four-line loop that becomes one readable line. | ⏳ Planned | |
| 02 | Filtering: adding if Inside a ComprehensionBuild and filter in a single pass, without an empty list first. | ⏳ Planned | |
| 03 | enumerate and zipLoop with the index, or over two lists at once — no counter variable. | ⏳ Planned | |
| 04 | lambda, map and filterTiny throwaway functions, and where they beat writing a whole one. | ⏳ Planned | |
| 05 | Dictionary Comprehensions and sorted(key=)Reshape a dictionary, and sort anything by a rule you write. | ⏳ Planned | |
| 06 | Project: A Data Tidy-Up in Ten LinesTake a messy record list and clean, filter and sort it — compactly. | ⏳ Planned | 🛠️ Project |
| Code | Lesson | Type | Milestone |
|---|---|---|---|
| 01 | Tuples: The List That Cannot ChangeWhy a container you cannot edit is a feature, not a limitation. | ⏳ Planned | |
| 02 | Unpacking and Returning Several ValuesOne line for a, b = b, a — and functions that answer twice. | ⏳ Planned | |
| 03 | Sets: No Duplicates, No OrderThrow away repeats in one call, and test membership fast. | ⏳ Planned | |
| 04 | Set Maths: union, intersection, differenceWho is in both classes? Who is only in mine? One operator each. | ⏳ Planned | |
| 05 | Choosing: List, Tuple, Set or DictionaryFour containers, one decision — with the questions that settle it. | ⏳ Planned | |
| 06 | Project: A Duplicate FinderTwo name lists in; the repeats, the uniques and the overlap out. | ⏳ Planned | 🛠️ Project |
| Code | Lesson | Type | Milestone |
|---|---|---|---|
| 01 | import: Using Code Somebody Else Wroterandom, math, datetime — batteries already included. | ⏳ Planned | |
| 02 | Your Own Module: One File, Many ProgramsMove your functions out, import them back, use them anywhere. | ⏳ Planned | |
| 03 | from ... import, aliases and Name ClashesThree ways to import, and the one that quietly overwrites things. | ⏳ Planned | |
| 04 | The __main__ Line, ExplainedWhy importing your file should not run it — and the one-line fix. | ⏳ Planned | |
| 05 | pip and Virtual EnvironmentsInstall a package for one project without touching the others. | ⏳ Planned | |
| 06 | Project: A Package of Your OwnThree modules, one folder, imported into a program that uses all three. | ⏳ Planned | 🛠️ Project |
No lessons match your search.