Think Python: How to Think Like a Computer ScientistIf 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 a step at a time, beginning with basic programming concepts before moving on to functions, recursion, data structures, and object-oriented design. This second edition and its supporting code have been updated for Python 3. 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. Beginners just getting their feet wet will learn how to start with Python in a browser.
|
Contents
Section 1 | |
Section 2 | |
Section 3 | |
Section 4 | |
Section 5 | |
Section 6 | |
Section 7 | |
Section 8 | |
Section 11 | |
Section 12 | |
Section 13 | |
Section 14 | |
Section 15 | |
Section 16 | |
Section 17 | |
Section 18 | |
Section 9 | |
Section 10 | |
Section 19 | |
Section 20 | |
Other editions - View all
Common terms and phrases
Analysis of Algorithms attributes builtin function cards Chapter character class diagram conditional statement copy create data structure database Debugging Deck Dictionaries and Tuples docstring elements error message example False fibonacci Filenames and Paths floatingpoint flow of execution Formal languages Fruitful Functions function called function definition function named Global Variables Glossary Hashtables Here’s histogram implementation infinite recursion init method input integer interface iteration keyword letter List Comprehensions List Methods Lists Are Mutable loop maps memoize modify module Natural Languages object Object diagram objectoriented Operator Overloading order of growth output parameter print statements problem ProgrammerDefined Types Python provides Reading Word Lists Rectangle result return statement return True return value Reverse Lookup run the program runtime script sequence slice solution Stack Diagrams string method Syntax Errors takes Tuples Are Immutable turtle update variable name VariableLength Argument Tuples Write a function