Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Practical Programming, 2nd Edition
Table of Contents
What Readers Are Saying About Practical Programming, Second Edition
Acknowledgments
Preface
Our Approach
Further Reading
What You’ll See
Online Resources
Chapter 1: What’s Programming?
1.1 Programs and Programming
1.2 What’s a Programming Language?
1.3 What’s a Bug?
1.4 The Difference Between Brackets, Braces, and Parentheses
1.5 Installing Python
Chapter 2: Hello, Python
2.1 How Does a Computer Run a Python Program?
2.2 Expressions and Values: Arithmetic in Python
2.3 What Is a Type?
2.4 Variables and Computer Memory: Remembering Values
2.5 How Python Tells You Something Went Wrong
2.6 A Single Statement That Spans Multiple Lines
2.7 Describing Code
2.8 Making Code Readable
2.9 The Object of This Chapter
2.10 Exercises
Chapter 3: Designing and Using Functions
3.1 Functions That Python Provides
3.2 Memory Addresses: How Python Keeps Track of Values
3.3 Defining Our Own Functions
3.4 Using Local Variables for Temporary Storage
3.5 Tracing Function Calls in the Memory Model
3.6 Designing New Functions: A Recipe
3.7 Writing and Running a Program
3.8 Omitting a Return Statement: None
3.9 Dealing with Situations That Your Code Doesn’t Handle
3.10 What Did You Call That?
3.11 Exercises
Chapter 4: Working with Text
4.1 Creating Strings of Characters
4.2 Using Special Characters in Strings
4.3 Creating a Multiline String
4.4 Printing Information
4.5 Getting Information from the Keyboard
4.6 Quotes About Strings in This Text
4.7 Exercises
Chapter 5: Making Choices
5.1 A Boolean Type
5.2 Choosing Which Statements to Execute
5.3 Nested If Statements
5.4 Remembering the Results of a Boolean Expression Evaluation
5.5 You Learned About Booleans: True or False?
5.6 Exercises
Chapter 6: A Modular Approach to Program Organization
6.1 Importing Modules
6.2 Defining Your Own Modules
6.3 Testing Your Code Semiautomatically
6.4 Tips for Grouping Your Functions
6.5 Organizing Our Thoughts
6.6 Exercises
Chapter 7: Using Methods
7.1 Modules, Classes, and Methods
7.2 Calling Methods the Object-Oriented Way
7.3 Exploring String Methods
7.4 What Are Those Underscores?
7.5 A Methodical Review
7.6 Exercises
Chapter 8: Storing Collections of Data Using Lists
8.1 Storing and Accessing Data in Lists
8.2 Modifying Lists
8.3 Operations on Lists
8.4 Slicing Lists
8.5 Aliasing: What’s in a Name?
8.6 List Methods
8.7 Working with a List of Lists
8.8 A Summary List
8.9 Exercises
Chapter 9: Repeating Code Using Loops
9.1 Processing Items in a List
9.2 Processing Characters in Strings
9.3 Looping Over a Range of Numbers
9.4 Processing Lists Using Indices
9.5 Nesting Loops in Loops
9.6 Looping Until a Condition Is Reached
9.7 Repetition Based on User Input
9.8 Controlling Loops Using Break and Continue
9.9 Repeating What You’ve Learned
9.10 Exercises
Chapter 10: Reading and Writing Files
10.1 What Kinds of Files Are There?
10.2 Opening a File
10.3 Techniques for Reading Files
10.4 Files over the Internet
10.5 Writing Files
10.6 Writing Algorithms That Use the File-Reading Techniques
10.7 Multiline Records
10.8 Looking Ahead
10.9 Notes to File Away
10.10 Exercises
Chapter 11: Storing Data Using Other Collection Types
11.1 Storing Data Using Sets
11.2 Storing Data Using Tuples
11.3 Storing Data Using Dictionaries
11.4 Inverting a Dictionary
11.5 Using the In Operator on Tuples, Sets, and Dictionaries
11.6 Comparing Collections
11.7 A Collection of New Information
11.8 Exercises
Chapter 12: Designing Algorithms
12.1 Searching for the Smallest Values
12.2 Timing the Functions
12.3 At a Minimum, You Saw This
12.4 Exercises
Chapter 13: Searching and Sorting
13.1 Searching a List
13.2 Binary Search
13.3 Sorting
13.4 More Efficient Sorting Algorithms
13.5 Mergesort: A Faster Sorting Algorithm
13.6 Sorting Out What You Learned
13.7 Exercises
Chapter 14: Object-Oriented Programming
14.1 Understanding a Problem Domain
14.2 Function “Isinstance,” Class Object, and Class Book
14.3 Writing a Method in Class Book
14.4 Plugging into Python Syntax: More Special Methods
14.5 A Little Bit of OO Theory
14.6 A Case Study: Molecules, Atoms, and PDB Files
14.7 Classifying What You’ve Learned
14.8 Exercises
Chapter 15: Testing and Debugging
15.1 Why Do You Need to Test?
15.2 Case Study: Testing above_freezing
15.3 Case Study: Testing running_sum
15.4 Choosing Test Cases
15.5 Hunting Bugs
15.6 Bugs We’ve Put in Your Ear
15.7 Exercises
Chapter 16: Creating Graphical User Interfaces
16.1 Using Module Tkinter
16.2 Building a Basic GUI
16.3 Models, Views, and Controllers, Oh My!
16.4 Customizing the Visual Style
16.5 Introducing a Few More Widgets
16.6 Object-Oriented GUIs
16.7 Keeping the Concepts from Being a GUI Mess
16.8 Exercises
Chapter 17: Databases
17.1 Overview
17.2 Creating and Populating
17.3 Retrieving Data
17.4 Updating and Deleting
17.5 Using NULL for Missing Data
17.6 Using Joins to Combine Tables
17.7 Keys and Constraints
17.8 Advanced Features
17.9 Some Data Based On What You Learned
17.10 Exercises
Bibliography
You May Be Interested In…
← Prev
Back
Next →
← Prev
Back
Next →