This workbook is organized into 9 progressive learning units that guide beginners from basic computational thinking to building a complete Python project.
Table of Contents
Unit 01 — Problem Solving & Algorithms- 1.1 What Is a Problem?
- 1.2 The Six-Step Method
- 1.3 Operators & Precedence
- 1.4 Algorithms & Pseudocode
- 1.5 Flowcharts
- 1.6 Debugging
- 1.7 Worked Examples
- 1.8 Key Terms & Exercises
- 2.1 Programs vs Software
- 2.2 Language Evolution
- 2.3 How Python Runs
- 2.4 Why Python?
- 2.5 IDLE & VS Code Setup
- 2.6 Libraries & Modules
- 2.7 Worked Examples
- 2.8 Key Terms & Exercises
- 3.1 Variables & Constants
- 3.2 All Five Operator Families
- 3.3 Primitive Types
- 3.4 Input, Casting & Type Conversion
- 3.5 Lists
- 3.6 Tuples
- 3.7 Dictionaries
- 3.8 Sets
- 3.9 Worked Examples
- 3.10 Key Terms & Exercises
- 4.1 if / elif / else
- 4.2 Nested Conditions
- 4.3 match-case
- 4.4 for Loops
- 4.5 while Loops
- 4.6 break, continue, pass
- 4.7 Nested Loops
- 4.8 List Comprehensions
- 4.9 Worked Examples
- 4.10 Key Terms & Exercises
- 5.1 Defining Functions
- 5.2 Parameters & Arguments
- 5.3 Return Values
- 5.4 Variable Scope
- 5.5 Recursion
- 5.6 Lambda & Higher-Order Functions
- 5.7 Worked Examples
- 5.8 Key Terms & Exercises
- 6.1 String Fundamentals
- 6.2 String Methods
- 6.3 String Formatting
- 6.4 Regular Expressions
- 6.5 datetime Module
- 6.6 Worked Examples
- 6.7 Key Terms & Exercises
- 7.1 Types of Errors
- 7.2 try / except / else / finally
- 7.3 Exception Hierarchy
- 7.4 raise & Custom Exceptions
- 7.5 finally & with
- 7.6 Worked Examples
- 7.7 Key Terms & Exercises
- 8.1 Reading Text Files
- 8.2 Writing Text Files
- 8.3 CSV Files
- 8.4 JSON Files
- 8.5 os & pathlib
- 8.6 Worked Examples
- 8.7 Key Terms & Exercises
- 9.1 Project Brief
- 9.2 Data Architecture
- 9.3 Building Each Feature
- 9.4 Full Solution
- 9.5 Testing Your Code
- 9.6 Extension Challenges
- 9.7 What Comes Next