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
- Chapter 1: What Programming with Python Studies
- Chapter 2: Setting Up Python
- Chapter 3: Values, Variables, and Expressions
- Chapter 4: Input, Output, and Simple Programs
- Chapter 5: Booleans, Comparisons, and Decisions
- Chapter 6: If, Elif, and Else
- Chapter 7: Loops and Repetition
- Chapter 8: While Loops and Loop Control
- Chapter 9: For Loops and Ranges
- Chapter 10: Tracing, Debugging, and Testing Simple Programs
- Chapter 11: Defining and Calling Functions
- Chapter 12: Parameters, Arguments, and Return Values
- Chapter 13: Scope, Local Variables, and Program State
- Chapter 14: Decomposition and Reusable Code
- Chapter 15: Standard Library Basics
- Chapter 16: Strings and Text Processing
- Chapter 17: Lists and Sequences
- Chapter 18: Tuples, Sets, and Dictionaries
- Chapter 19: Nested Data Structures
- Chapter 20: Choosing and Combining Data Structures
- Chapter 21: Files, Path, and Text Data
- Chapter 22: CVS Files and Table Data
- Chapter 23: Exceptions and Error Handling
- Chapter 24: Dates, Randomness, and Simulation
- Chapter 25: Automating Everyday Tasks
- Chapter 26: Classes and Objects
- Chapter 27: Methods, Attributes, and Object State
- Chapter 28: Designing Small Applications
- Chapter 29: Testing, Refactoring, and Code Quality
- Chapter 30: Building and Documenting a Python Project
- Chapter 31: JSON Data
- Back Matter
Learning Outcomes
- Write and run Python programs using core language features.
- Use variables, expressions, decisions, and loops to control program behavior.
- Design functions and reusable code to simplify problem solving.
- Work with strings, lists, dictionaries, files, and structured data.
- Handle errors and exceptions responsibly.
- Apply object-oriented programming concepts using classes and objects.
- Test, debug, and improve program quality.
- Build small, complete Python applications.
- Read and write JSON data for modern software workflows.
- Develop confidence in computational thinking and software development.