How to Think Like a Computer Scientist: Python Edition
-
1 The way of the program
-
1.1 The Python programming language
-
1.2 What is a program?
-
1.3 What is debugging?
-
1.4 Formal and natural languages
-
1.5 The first program
-
1.6 Debugging
-
1.7 Glossary
-
1.8 Exercises
-
2 Variables, expressions and statements
-
2.1 Values and types
-
2.2 Variables
-
2.3 Variable names and keywords
-
2.4 Operators and operands
-
2.5 Expressions and statements
-
2.6 Interactive mode and scriptmode
-
2.7 Order of operations 2.8 String operations
-
2.9 Comments
-
2.10 Debugging
-
2.11 Glossary
-
2.12 Exercises
-
-
3.1 Function calls
-
3.2 Type conversion functions
-
3.3 Math functions
-
3.4 Composition
-
3.5 Adding new functions
-
3.6 Definitions and uses
-
3.7 Flow of execution
-
3.8 Parameters and arguments
-
3.9 Variables and parameters are local
-
3.10 Stack diagrams
-
3.11 Fruitful functions and void functions
-
3.12 Why functions?
-
3.13 Importing with from
-
3.14 Debugging
-
3.15 Glossary
-
3.16 Exercises
4 Case study: Interface Design
-
4.1 TurtleWorld
-
4.2 Simple repetition
-
4.3 Exercises
-
4.4 Encapsulation
-
4.5 Generalization
-
4.6 Interface design
-
4.7 Refactoring
-
4.8 A development plan
-
4.9 doc string
-
4.10 Debugging
-
4.11 Glossary
-
4.12 Exercises
|
|