Author(s): Mike McGrath
Edition: 2
Title
Copyright
Contents
Preface
1 Getting started
Introducing Python
Installing Python on Windows
Installing Python on Linux
Meeting the interpreter
Writing your first program
Employing variables
Obtaining user input
Correcting errors
Summary
2 Performing operations
Doing arithmetic
Assigning values
Comparing values
Assessing logic
Examining conditions
Setting precedence
Casting data types
Manipulating bits
Summary
3 Making statements
Writing lists
Manipulating lists
Restricting lists
Associating list elements
Branching with if
Looping while true
Looping over items
Breaking out of loops
Summary
4 Defining functions
Understanding scope
Supplying arguments
Returning values
Using callbacks
Adding placeholders
Producing generators
Handling exceptions
Debugging assertions
Summary
5 Importing modules
Storing functions
Owning function names
Interrogating the system
Performing mathematics
Calculating decimals
Telling the time
Running a timer
Matching patterns
Summary
6 Managing strings
Manipulating strings
Formatting strings
Modifying strings
Converting strings
Accessing files
Reading and writing files
Updating file strings
Pickling data
Summary
7 Programming objects
Encapsulating data
Creating instance objects
Addressing class attributes
Examining built-in attributes
Collecting garbage
Inheriting features
Overriding base methods
Harnessing polymorphism
Summary
8 Processing requests
Sending responses
Handling values
Submitting forms
Providing text areas
Checking boxes
Choosing radio buttons
Selecting options
Uploading files
Summary
9 Building interfaces
Launching a window
Responding to buttons
Displaying messages
Gathering entries
Listing options
Polling radio buttons
Checking boxes
Adding images
Summary
10 Developing applications
Generating random numbers
Planning the program
Designing the interface
Assigning static properties
Initializing dynamic properties
Adding runtime functionality
Testing the program
Installing a freezing tool
Freezing the program
Summary
Backcover