In FUNDAMENTALS OF PYTHON: FIRST PROGRAMS, respected author Kenneth A. Lambert presents all of the important topics for a CS1 course while preparing your students to study additional languages. The book uses the Python programming language, which is both easy to learn for beginners and scales well to advanced applications. Lambert's back-to-basics approach will be engaging for your students looking for relevance of the concepts and applications from the text to the real world. Important Notice: Media content referenced within the product description or the product text may not be available in the ebook version.
Author(s): Kenneth A. Lambert
Publisher: Cengage Learning
Year: 2011
Language: English
Pages: 510
Cover
Table of Contents
Preface
Why Python?
Organization of the Book
Special Features
Supplemental Resources
We Appreciate Your Feedback
Acknowledgments
Dedication
CHAPTER 1: Introduction
1.1: Two Fundamental Ideas of Computer Science: Algorithms and Information Processing
1.2: The Structure of a Modern Computer System
1.3: A Not-So-Brief History of Computing Systems
1.4: Getting Started with Python Programming
1.5: Detecting and Correcting Syntax Errors
Suggestions for Further Reading
Summary
Review Questions
Projects
CHAPTER 2: Software Development, Data Types, and Expressions
2.1: The Software Development Process
2.2: Case Study: Income Tax Calculator
2.3: Strings, Assignment, and Comments
2.4: Numeric Data Types and Character Sets
2.5: Expressions
2.6: Using Functions and Modules
Summary
Review Questions
Projects
CHAPTER 3: Control Statements
3.1: Definite Iteration: The for Loop
3.2: Formatting Text for Output
3.3: Case Study: An Investment Report
3.4: Selection: if and if-else Statements
3.5: Conditional Iteration: The while Loop
3.6: Case Study: Approximating Square Roots
Summary
Review Questions
Projects
CHAPTER 4: Strings and Text Files
4.1: Accessing Characters and Substrings in Strings
4.2: Data Encryption
4.3: Strings and Number Systems
4.4: String Methods
4.5: Text Files
4.6: Case Study: Text Analysis
Summary
Review Questions
Projects
CHAPTER 5: Lists and Dictionaries
5.1: Lists
5.2: Defining Simple Functions
5.3: Case Study: Generating Sentences
5.4: Dictionaries
5.5: Case Study: Nondirective Psychotherapy
Summary
Review Questions
Projects
CHAPTER 6: Design with Functions
6.1: Functions as Abstraction Mechanisms
6.2: Problem Solving with Top-Down Design
6.3: Design with Recursive Functions
6.4: Case Study: Gathering Information from a File System
6.5: Managing a Program’s Namespace
6.6: Higher-Order Functions (Advanced Topic)
Summary
Review Questions
Projects
CHAPTER 7: Simple Graphics and Image Processing
7.1: Simple Graphics
7.2: Case Study: Recursive Patterns in Fractals
7.3: Image Processing
Summary
Review Questions
Projects
CHAPTER 8: Design with Classes
8.1: Getting Inside Objects and Classes
8.2: Case Study: Playing the Game of Craps
8.3: Data-Modeling Examples
8.4: Case Study: An ATM
8.5: Structuring Classes with Inheritance and Polymorphism
Summary
Review Questions
Projects
CHAPTER 9: Graphical User Interfaces
9.1: The Behavior of Terminal-Based Programs and GUI-Based Programs
9.2: Coding Simple GUI-Based Programs
9.3: Case Study: A GUI-Based ATM
9.4: Other Useful GUI Resources
Summary
Review Questions
Projects
CHAPTER 10: MultiThreading, Networks, and Client/Server Programming
10.1: Threads and Processes
10.2: Networks, Clients, and Servers
10.3: Case Study: A Multi-Client Chat Room
Summary
Review Questions
Projects
Appendix A: Python Resources
A.1: Installing Python on Your Computer
A.2: Using the Terminal Command Prompt,IDLE, and Other IDEs
Appendix B: Installing the Images Library
Appendix C: The API for Image Processing
Appendix D: Transition from Python to Java and C++
Glossary
Index