Python Handbook
Every idea in the course, in the order the projects use them.
249 entries
Act 1The Workshop
- The terminalPython at Home
- Virtual environmentsPython at Home
- Comments are notes for peopleProject 1, Course Sign
- print() shows thingsProject 1, Course Sign
- Programs run top to bottomProject 1, Course Sign
- Strings are text in quotesProject 1, Course Sign
- ArithmeticProject 2, Bill Splitter
- f-stringsProject 2, Bill Splitter
- float() makes decimal numbersProject 2, Bill Splitter
- Honest namesProject 2, Bill Splitter
- input() gives you textProject 2, Bill Splitter
- int() makes whole numbersProject 2, Bill Splitter
- type() says what kind of valueProject 2, Bill Splitter
- Variables are labels on boxesProject 2, Bill Splitter
- Which sum goes firstProject 2, Bill Splitter
- NameErrorProject 3, Reading Tracebacks
- Reading a tracebackProject 3, Reading Tracebacks
- str() makes textProject 3, Reading Tracebacks
- SyntaxErrorProject 3, Reading Tracebacks
- TypeErrorProject 3, Reading Tracebacks
- ValueErrorProject 3, Reading Tracebacks
- An if inside an ifProject 4, Unit Converter
- ComparisonsProject 4, Unit Converter
- if, elif and elseProject 4, Unit Converter
- True and FalseProject 4, Unit Converter
- and, or, notProject 5, Password Checker
- inProject 5, Password Checker
- Slicing stringsProject 5, Password Checker
- String methodsProject 5, Password Checker
- Strings can't be changedProject 5, Password Checker
- strip() and replace()Project 5, Password Checker
- for loopsProject 6, Times Table Trainer
- rangeProject 6, Times Table Trainer
- The loop variableProject 6, Times Table Trainer
- Tracing a loopProject 6, Times Table Trainer
- break and continueProject 7, Number Guessing Game
- importProject 7, Number Guessing Game
- Loops that never endProject 7, Number Guessing Game
- Random numbersProject 7, Number Guessing Game
- Running totals and countersProject 7, Number Guessing Game
- SentinelsProject 7, Number Guessing Game
- while loopsProject 7, Number Guessing Game
- append and popProject 8, To-Do List
- Counting from the endProject 8, To-Do List
- Indexes start at 0Project 8, To-Do List
- List methods change the listProject 8, To-Do List
- ListsProject 8, To-Do List
- Looping over a listProject 8, To-Do List
- Slices take part of a listProject 8, To-Do List
- sorted() and .sort()Project 8, To-Do List
- Two labels, one listProject 8, To-Do List
- .get() for keys that might not be thereProject 9, Contact Book
- DictionariesProject 9, Contact Book
- Dictionaries inside dictionariesProject 9, Contact Book
- Looping over a dictionaryProject 9, Contact Book
- split() and join()Project 9, Contact Book
- FunctionsProject 10, Grade Calculator
- NoneProject 10, Grade Calculator
- ParametersProject 10, Grade Calculator
- Return valuesProject 10, Grade Calculator
- ScopeProject 10, Grade Calculator
- ExceptionsProject 12, Four-Function Calculator
- try and exceptProject 12, Four-Function Calculator
Act 2The Studio
- *args and **kwargsProject 1, Password Generator
- Default argumentsProject 1, Password Generator
- DocstringsProject 1, Password Generator
- Keyword argumentsProject 1, Password Generator
- The mutable default trapProject 1, Password Generator
- enumerate()Project 2, Measurement Book
- Returning several valuesProject 2, Measurement Book
- TuplesProject 2, Measurement Book
- UnpackingProject 2, Measurement Book
- zip()Project 2, Measurement Book
- Comparing setsProject 3, Lost Property Matcher
- How fast is in?Project 3, Lost Property Matcher
- SetsProject 3, Lost Property Matcher
- Counting with CounterProject 4, Word Counter and Text Analyser
- PathsProject 4, Word Counter and Text Analyser
- Reading and writing filesProject 4, Word Counter and Text Analyser
- The csv moduleProject 4, Word Counter and Text Analyser
- with blocksProject 4, Word Counter and Text Analyser
- Defensive inputProject 6, Log Analyser
- Raising errorsProject 6, Log Analyser
- Comprehensions with ifProject 8, Quiz App
- JSON and the json moduleProject 8, Quiz App
- List comprehensionsProject 8, Quiz App
- Set and dictionary comprehensionsProject 8, Quiz App
- ModulesProject 9, Opening Hours Module
- The main guardProject 9, Opening Hours Module
- The standard libraryProject 9, Opening Hours Module
- is and ==Project 10, Order Book
- Mutable and immutableProject 10, Order Book
- ReferencesProject 10, Order Book
- Shallow and deep copiesProject 10, Order Book
- __init__Project 11, Bank Account System
- AttributesProject 11, Bank Account System
- Classes and objectsProject 11, Bank Account System
- Dunder methodsProject 11, Bank Account System
- MethodsProject 11, Bank Account System
- selfProject 11, Bank Account System
- CompositionProject 12, Library Manager
- DataclassesProject 12, Library Manager
- EnumsProject 12, Library Manager
- InheritanceProject 12, Library Manager
- super()Project 12, Library Manager
- Type hintsProject 12, Library Manager
- assertProject 14, Testing the Bank
- Edge casesProject 14, Testing the Bank
- pytestProject 14, Testing the Bank
- Writing tests firstProject 14, Testing the Bank
- argparse reads the command lineProject 16, Command-Line To-Do Tool
- Exit codesProject 16, Command-Line To-Do Tool
- sys.argv, what was typedProject 16, Command-Line To-Do Tool
- Generators and yieldProject 17, Log Streamer
- Iterators hand over one value at a timeProject 17, Log Streamer
- Lazy means worked out when askedProject 17, Log Streamer
- Closures rememberProject 18, Timing and Retry Decorators
- DecoratorsProject 18, Timing and Retry Decorators
- Functions are valuesProject 18, Timing and Retry Decorators
- lambda, a function on one lineProject 18, Timing and Retry Decorators
- map and filterProject 18, Timing and Retry Decorators
- Sorting with key=Project 18, Timing and Retry Decorators
- Branches and mergingProject 19, Git and GitHub
- Commits, staging and historyProject 19, Git and GitHub
- Merge conflictsProject 19, Git and GitHub
Act 3The Makerspace
- Calling a web APIProject 1, Weather App
- Requests and responsesProject 1, Weather App
Act 4The Puzzle Room
- Big-O, how the steps growProject 1, Speed Tester
- Timing codeProject 1, Speed Tester
- Binary searchProject 2, Search Engine for a Parts List
- Linear searchProject 2, Search Engine for a Parts List
- The bisect moduleProject 2, Search Engine for a Parts List
- Merge sortProject 3, Sorting Visualiser
- QuicksortProject 3, Sorting Visualiser
- Selection sort and insertion sortProject 3, Sorting Visualiser
- Stable sortingProject 3, Sorting Visualiser
- Base casesProject 4, Recursive File Tree Printer
- MemoisationProject 4, Recursive File Tree Printer
- RecursionProject 4, Recursive File Tree Printer
- The call stackProject 4, Recursive File Tree Printer
- collections.dequeProject 5, Undo/Redo Text Editor
- QueuesProject 5, Undo/Redo Text Editor
- StacksProject 5, Undo/Redo Text Editor
- Linked listsProject 6, Linked List
- Hash mapsProject 7, Hash Map from Scratch
- HashingProject 7, Hash Map from Scratch
- Binary search treesProject 8, Parts Catalogue
- Tree traversalsProject 8, Parts Catalogue
- TreesProject 8, Parts Catalogue
- HeapsProject 10, Task Scheduler
- Priority queuesProject 10, Task Scheduler
- Breadth-first searchProject 11, Maze Solver
- Depth-first searchProject 11, Maze Solver
- Graphs as dictionaries of neighboursProject 11, Maze Solver
- A* searchProject 12, Route Planner
- Dijkstra's algorithmProject 12, Route Planner
- Weighted graphsProject 12, Route Planner
- BacktrackingProject 13, Sudoku Solver
- Dynamic programmingProject 14, Spell Checker
Act 5The Archive
- BroadcastingProject 1, NumPy Grade Book
- NumPy arraysProject 1, NumPy Grade Book
- VectorisationProject 1, NumPy Grade Book
- pandas DataFrames and SeriesProject 2, Census Explorer
- Selecting and filtering rowsProject 2, Census Explorer
- Cleaning a tableProject 3, Data Cleaning Pipeline
- Missing dataProject 3, Data Cleaning Pipeline
- groupby, aggregation and pivot tablesProject 4, Census Pivot Tables
- Merging tablesProject 4, Census Pivot Tables
- Charts with matplotlibProject 5, Weather History Dashboard
- Honest chartsProject 5, Weather History Dashboard
- Distributions, quartiles and outliersProject 8, Summary Statistics Report
- Mean, median, mode and spreadProject 8, Summary Statistics Report
- Correlation, and what it doesn't sayProject 9, Statistics Toolkit
- Permutation tests and p-valuesProject 9, Statistics Toolkit
- Probability and simulationProject 9, Statistics Toolkit
- Matrices and @Project 10, Linear Algebra Lab
- Vectors and the dot productProject 10, Linear Algebra Lab
- Derivatives are slopesProject 11, Calculus for ML
- Numerical gradientsProject 11, Calculus for ML
- The chain ruleProject 11, Calculus for ML
Act 6The Model Room
- Gradient descentProject 1, House Price Predictor
- Linear regressionProject 1, House Price Predictor
- Mean squared errorProject 1, House Price Predictor
- scikit-learn: make, fit, predictProject 1, House Price Predictor
- Feature scalingProject 2, Exam Score Model
- Overfitting and underfittingProject 2, Exam Score Model
- Polynomial featuresProject 2, Exam Score Model
- Regression with many featuresProject 2, Exam Score Model
- Training, validation and test setsProject 2, Exam Score Model
- Cross-entropy (log loss)Project 4, Diabetes Risk Classifier
- Logistic regressionProject 4, Diabetes Risk Classifier
- Precision, recall and the confusion matrixProject 4, Diabetes Risk Classifier
- ROC curves and AUCProject 4, Diabetes Risk Classifier
- k nearest neighboursProject 5, Iris and Penguins Classifier
- Decision treesProject 6, Loan Approval Tree
- Ensembles: forests and boostingProject 6, Loan Approval Tree
- Eigenvectors and eigenvaluesProject 8, Customer Segmentation
- k-means clusteringProject 8, Customer Segmentation
- Principal component analysisProject 8, Customer Segmentation
- Cross-validationProject 9, Model Evaluation Clinic
- Data leakageProject 9, Model Evaluation Clinic
- Grid searchProject 9, Model Evaluation Clinic
- Model bias across groupsProject 9, Model Evaluation Clinic
- Pipelines: steps that travel togetherProject 9, Model Evaluation Clinic
- BaselinesProject 10, Fishing Forecast
- Feature engineeringProject 10, Fishing Forecast
Act 7The Engine Room
- Activation functionsProject 1, Neural Network from Scratch
- BackpropagationProject 1, Neural Network from Scratch
- Checking gradients by measuringProject 1, Neural Network from Scratch
- Layers and the forward passProject 1, Neural Network from Scratch
- The perceptronProject 1, Neural Network from Scratch
- AutogradProject 2, Tiny Autograd Engine
- Optimisers, mini-batches and the learning rateProject 3, Optimiser Benchmark
- Starting weightsProject 3, Optimiser Benchmark
- Softmax and cross-entropyProject 4, Handwritten Digit Recogniser
- PyTorchProject 5, PyTorch Fundamentals
- Convolutions and poolingProject 6, Image Classifier
- Batch normalisationProject 7, Seeing Forecaster
- DropoutProject 7, Seeing Forecaster
- Regularisation: weight decay and early stoppingProject 7, Seeing Forecaster
- LSTM gatesProject 8, Tide Predictor
- Recurrent networksProject 8, Tide Predictor
- Language models and perplexityProject 9, Text Generator
- One-hot rows and embeddingsProject 9, Text Generator
- Tokens, vocabularies and idsProject 9, Text Generator
- Scaled dot-product attentionProject 11, Tiny GPT
- Transformer blocksProject 11, Tiny GPT
Act 8The Arcade
- A/B tests and what they costProject 1, A/B Test Bandit
- Exploring and exploitingProject 1, A/B Test Bandit
- Multi-armed banditsProject 1, A/B Test Bandit
- Markov decision processesProject 2, Gridworld Simulator
- Returns and discountingProject 2, Gridworld Simulator
- Policy evaluationProject 3, Gridworld Solver
- Policy iterationProject 3, Gridworld Solver
- Value iterationProject 3, Gridworld Solver
- Monte Carlo learningProject 4, Value Estimator
- Temporal difference learningProject 4, Value Estimator
- Q-learningProject 6, Q-Learning Crab
- SARSAProject 6, Q-Learning Crab
- Gymnasium environmentsProject 8, Tide Gate Controller
- Deep Q networksProject 9, CartPole with DQN
- Policy gradients and REINFORCEProject 10, Policy Gradients
- Actor-critic and PPO's clipProject 11, Actor-Critic and PPO
Act 9The Roof Terrace
- Where the numbers came fromProject 2, Weather Data Investigation
- Double descentProject 3, Paper Reproduction
- Reproducible resultsProject 3, Paper Reproduction
- The game loopProject 4, Arcade Catch Game
- Testing the testsProject 5, Your Own Project
- Binary search on the answerProject 7, University and Interview Readiness