O’Reilly Media, 2012. — 300 p. — ISBN: 144933072X, 9781449330729
If you want to learn how to program, working with Python is an excellent way to start. This hands-on guide takes you through the language one step at a time, beginning with basic programming concepts before moving on to functions, recursion, data structures, and object-oriented design.
Through exercises in each chapter, you’ll try out programming concepts as you learn them. Think Python is ideal for students at the high school or college level, as well as self-learners, home-schooled students, and professionals who need to learn programming basics.
Start with the basics, including language syntax and semantics
Get a clear definition of each programming concept
Learn values, variables, statements, functions, and data structures in a logical progression
Discover how to work with files and databases
Understand objects, methods, and object-oriented programming
Use debugging techniques to fix syntax, runtime, and semantic errors
Explore interface design, data structures, and GUI-based programs through case studies
The Way of the Program
Variables, Expressions, and Statements
Functions
Case Study: Interface Design
Conditionals and Recursion
Fruitful Functions
Iteration
Strings
Case Study: Word Play
Lists
Dictionaries
Tuples
Case Study: Data Structure Selection
Files
Classes and Objects
Classes and Functions
Classes and Methods
Inheritance
Case Study: Tkinter