Skip to content

Practical Programming An Introduction to Computer Science Using Python

Best in textbook rentals since 2012!

ISBN-10: 1934356271

ISBN-13: 9781934356272

Edition: 2009

Authors: Jennifer Campbell, Paul Gries, Jason Montojo, Greg Wilson, Jennifer et al Campbell

List price: $32.95
Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

Description:

Computers are used in every part of science from ecology to particle physics. This introduction to computer science continually reinforces those ties by using real-world science problems as examples. Anyone who has taken a high school science class will be able to follow along as the book introduces the basics of programming, then goes on to show readers how to work with databases, download data from the web automatically, build graphical interfaces, and most importantly, how to think like a professional programmer. Topics covered include: * Basic elements of programming from arithmetic to loops and if statements. * Using functions and modules to organize programs. * Using lists, sets, and…    
Customers also bought

Book details

List price: $32.95
Copyright year: 2009
Publisher: Pragmatic Programmers, LLC, The
Publication date: 6/7/2009
Binding: Paperback
Pages: 350
Size: 7.25" wide x 9.00" long x 1.25" tall
Weight: 1.254
Language: English

Jennifer Campbell is a senior lecturer in Computer Science at theUniversity of Toronto who created the course this book is based on.

Paul Gries, is a senior lecturer in Computer Science at the University of Toronto. He has won numerous teaching awards and authored other introductory computer science texts.

Jason Montojo, is a former student of Jennifer Campbell and Paul Gries, who has since worked on the Eclipse programming platform at IBM; he is also a professional photographer and digital artist, and created all of the diagrams for this book.

Introduction
Programs and Programming
A Few Definitions
What to Install
For Instructors
Summary
Hello, Python
The Big Picture
Expressions
What Is a Type?
Variables and the Assignment Statement
When Things Go Wrong
Function Basics
Built-in Functions
Style Notes
Summary
Exercises
Strings
Strings
Escape Characters
Multiline Strings
Print
Formatted Printing
User Input
Summary
Exercises
Modules
Importing Modules
Defining Your Own Modules
Objects and Methods
Pixels and Colors
Testing
Style Notes
Summary
Exercises
Lists
Lists and Indices
Modifying Lists
Built-in Functions on Lists
Processing List Items
Slicing
Aliasing
List Methods
Nested Lists
Other Kinds of Sequences
Files as Lists
Comments
Summary
Exercises
Making Choices
Boolean Logic
if Statements
Storing Conditionals
Summary
Exercises
Repetition
Counted Loops
while Loops
User Input Loops
Controlling Loops
Style Notes
Summary
Exercises
File Processing
One Record per Line
Records with Multiple Fields
Positional Data
Multiline Records
Looking Ahead
Writing to Files
Summary
Exercises
Sets and Dictionaries
Sets
Dictionaries
Inverting a Dictionary
Summary
Exercises
Algorithms
Searching
Timing
Summary
Exercises
Searching and Sorting
Linear Search
Binary Search
Sorting
More Efficient Sorting Algorithms
Mergesort: An Nlog2N Algorithm
Summary
Exercises
Construction
More on Functions
Exceptions
Testing
Debugging
Patterns
Summary
Exercises
Object-Oriented Programming
Class Color
Special Methods
More About dir and help
A Little Bit of OO Theory
A Longer Example
Summary
Exercises
Graphical User Interfaces
The Tkinter Module
Basic GUI Construction
Models, Views, and Controllers
Style
A Few More Widgets
Object-Oriented GUIs
Summary
Exercises
Databases
The Big Picture
First Steps
Retrieving Data
Updating and Deleting
Transactions
Using NULL for Missing Data
Using Joins to Combine Tables
Keys and Constraints
Advanced Features
Summary
Exercises
A Bibliography
Index