GOOD BOOK
Table of Contents
Introduction to Computing Using Python: An Application Development Focus
Copyright
Dedication
Contents
Preface
The Book's Technical Features
Online Textbook Supplements
For Students: How to Read This Book
Overview of the Book
For Instructors: How to Use This Book
Acknowledgments
About the Author
CHAPTER 1: Introduction to Computer Science
1.1 Computer Science
1.2 Computer Systems
1.3 Python Programming Language
1.4 Computational Thinking
Chapter Summary
CHAPTER 2: Python Data Types
2.1 Expressions, Variables, and Assignments
2.2 Strings
2.3 Lists
2.4 Objects and Classes
2.5 Python Standard Library
2.6 Case Study: Turtle Graphics Objects
Chapter Summary
Solutions to Practice Problems
Exercises
CHAPTER 3: Imperative Programming
3.1 Python Programs
3.2 Execution Control Structures
3.3 User-Defined Functions
3.4 Python Variables and Assignments
3.5 Parameter Passing
3.6 Case Study: Automating Turtle Graphics
Chapter Summary
Solutions to Practice Problems
Problems
CHAPTER 4: Text Data, Files, and Exceptions
4.1 Strings, Revisited
4.2 Formatted Output
4.3 Files
4.4 Errors and Exceptions
4.5 Case Study: Logging File Access
Chapter Summary
Solutions to Practice Problems
Exercises
Problems
CHAPTER 5: Execution Control Structures
5.1 Decision Control and the if Statement
5.2 for Loop and Iteration Patterns
5.3 More on Lists: Two-Dimensional Lists
5.4 while Loop
5.5 More Loop Patterns
5.6 Additional Iteration Control Statements
Chapter Summary
Solutions to Practice Problems
Exercises
Problems
CHAPTER 6: Containers and Randomness
6.1 Dictionaries
6.2 Other Built-In Container Types
6.3 Character Encodings and Strings
6.4 Module random
6.5 Case Study: Games of Chance
Chapter Summary
Solutions to Practice Problems
Exercises
CHAPTER 7: Namespaces
7.1 Encapsulation in Functions
7.2 Global versus Local Namespaces
7.3 Exceptional Control Flow
7.4 Modules as Namespaces
7.5 Classes as Namespaces
Chapter Summary
Solutions to Practice Problems
Problems
CHAPTER 8: Object-Oriented Programming
8.1 Defining a New Python Class
8.2 Examples of User-Defined Classes
8.3 Designing New Container Classes
8.4 Overloaded Operators
8.5 Inheritance
8.6 User-Defined Exceptions
8.7 Case Study: Indexing and Iterators
Chapter Summary
Solutions to Practice Problems
Exercises
Problems
CHAPTER 9: Graphical User Interfaces
9.1 Basics of tkinter GUI Development
9.2 Event-Based tkinter Widgets
9.3 Designing GUIs
9.4 OOP for GUIs
9.5 Case Study: Developing a Calculator
Chapter Summary
Solutions to Practice Problems
Problems
CHAPTER 10: Recursion
10.1 Introduction to Recursion
10.2 Examples of Recursion
10.3 Run Time Analysis
10.4 Searching
10.5 Case Study: Tower of Hanoi
Chapter Summary
Solutions to Practice Problems
Exercises
Problems
CHAPTER 11: The Web and Search
11.1 The World Wide Web
11.2 Python WWW API
11.3 String Pattern Matching
11.4 Case Study: Web Crawler
Chapter Summary
Solutions to Practice Problems
Exercises
Problems
CHAPTER 12: Databases and Data Processing
12.1 Databases and SQL
12.2 Database Programming in Python
12.3 Functional Language Approach
12.4 Parallel Computing
Chapter Summary
Solutions to Practice Problems
Exercises
Problems
Index