Overview

This textbook develops programming fluency through progressive instruction in Python. Students begin with core syntax and simple programs, then move into decisions, repetition, functions, structured data, file handling, exception management, object-oriented programming, testing, and project development. The course emphasizes both logical thinking and practical software creation.

Table of Contents

  1. Chapter 1: What Programming with Python Studies
  2. Chapter 2: Setting Up Python
  3. Chapter 3: Values, Variables, and Expressions
  4. Chapter 4: Input, Output, and Simple Programs
  5. Chapter 5: Booleans, Comparisons, and Decisions
  6. Chapter 6: If, Elif, and Else
  7. Chapter 7: Loops and Repetition
  8. Chapter 8: While Loops and Loop Control
  9. Chapter 9: For Loops and Ranges
  10. Chapter 10: Tracing, Debugging, and Testing Simple Programs
  11. Chapter 11: Defining and Calling Functions
  12. Chapter 12: Parameters, Arguments, and Return Values
  13. Chapter 13: Scope, Local Variables, and Program State
  14. Chapter 14: Decomposition and Reusable Code
  15. Chapter 15: Standard Library Basics
  16. Chapter 16: Strings and Text Processing
  17. Chapter 17: Lists and Sequences
  18. Chapter 18: Tuples, Sets, and Dictionaries
  19. Chapter 19: Nested Data Structures
  20. Chapter 20: Choosing and Combining Data Structures
  21. Chapter 21: Files, Path, and Text Data
  22. Chapter 22: CVS Files and Table Data
  23. Chapter 23: Exceptions and Error Handling
  24. Chapter 24: Dates, Randomness, and Simulation
  25. Chapter 25: Automating Everyday Tasks
  26. Chapter 26: Classes and Objects
  27. Chapter 27: Methods, Attributes, and Object State
  28. Chapter 28: Designing Small Applications
  29. Chapter 29: Testing, Refactoring, and Code Quality
  30. Chapter 30: Building and Documenting a Python Project
  31. Chapter 31: JSON Data
  32. Back Matter

Learning Outcomes