- Page 1: Think Python How to Think Like a Co
- Page 4 and 5: Copyright © 2015 Allen Downey. Gre
- Page 6 and 7: vi Chapter 0. Preface Since then I
- Page 8 and 9: viii Chapter 0. Preface • Simon D
- Page 10 and 11: x Chapter 0. Preface • Mark E. Ca
- Page 12 and 13: xii Chapter 0. Preface
- Page 16 and 17: xvi Contents 7 Iteration 63 7.1 Rea
- Page 18 and 19: xviii Contents 12 Tuples 115 12.1 T
- Page 20 and 21: xx Contents 17.4 A more complicated
- Page 22 and 23: xxii Contents
- Page 24 and 25: 2 Chapter 1. The way of the program
- Page 26 and 27: 4 Chapter 1. The way of the program
- Page 28 and 29: 6 Chapter 1. The way of the program
- Page 30 and 31: 8 Chapter 1. The way of the program
- Page 32 and 33: 10 Chapter 2. Variables, expression
- Page 34 and 35: 12 Chapter 2. Variables, expression
- Page 36 and 37: 14 Chapter 2. Variables, expression
- Page 38 and 39: 16 Chapter 2. Variables, expression
- Page 40 and 41: 18 Chapter 3. Functions Finally, st
- Page 42 and 43: 20 Chapter 3. Functions >>> def pri
- Page 44 and 45: 22 Chapter 3. Functions >>> print_t
- Page 46 and 47: 24 Chapter 3. Functions This list o
- Page 48 and 49: 26 Chapter 3. Functions body: The s
- Page 50 and 51: 28 Chapter 3. Functions The output
- Page 52 and 53: 30 Chapter 4. Case study: interface
- Page 54 and 55: 32 Chapter 4. Case study: interface
- Page 56 and 57: 34 Chapter 4. Case study: interface
- Page 58 and 59: 36 Chapter 4. Case study: interface
- Page 60 and 61: 38 Chapter 4. Case study: interface
- Page 62 and 63: 40 Chapter 5. Conditionals and recu
- Page 64 and 65:
42 Chapter 5. Conditionals and recu
- Page 66 and 67:
44 Chapter 5. Conditionals and recu
- Page 68 and 69:
46 Chapter 5. Conditionals and recu
- Page 70 and 71:
48 Chapter 5. Conditionals and recu
- Page 72 and 73:
50 Chapter 5. Conditionals and recu
- Page 74 and 75:
52 Chapter 6. Fruitful functions de
- Page 76 and 77:
54 Chapter 6. Fruitful functions 1.
- Page 78 and 79:
56 Chapter 6. Fruitful functions Th
- Page 80 and 81:
58 Chapter 6. Fruitful functions de
- Page 82 and 83:
60 Chapter 6. Fruitful functions fa
- Page 84 and 85:
62 Chapter 6. Fruitful functions
- Page 86 and 87:
64 Chapter 7. Iteration x 5 7 Figur
- Page 88 and 89:
66 Chapter 7. Iteration As an exerc
- Page 90 and 91:
68 Chapter 7. Iteration To understa
- Page 92 and 93:
70 Chapter 7. Iteration Exercise 7.
- Page 94 and 95:
72 Chapter 8. Strings But the value
- Page 96 and 97:
74 Chapter 8. Strings 'ban' >>> fru
- Page 98 and 99:
76 Chapter 8. Strings This form of
- Page 100 and 101:
78 Chapter 8. Strings j = j-1 retur
- Page 102 and 103:
80 Chapter 8. Strings >>> fruit = '
- Page 104 and 105:
82 Chapter 8. Strings
- Page 106 and 107:
84 Chapter 9. Case study: word play
- Page 108 and 109:
86 Chapter 9. Case study: word play
- Page 110 and 111:
88 Chapter 9. Case study: word play
- Page 112 and 113:
90 Chapter 10. Lists cheeses number
- Page 114 and 115:
92 Chapter 10. Lists >>> t = ['a',
- Page 116 and 117:
94 Chapter 10. Lists isupper is a s
- Page 118 and 119:
96 Chapter 10. Lists a b [ 1, 2, 3
- Page 120 and 121:
98 Chapter 10. Lists The return val
- Page 122 and 123:
100 Chapter 10. Lists 10.14 Glossar
- Page 124 and 125:
102 Chapter 10. Lists thinkpython2.
- Page 126 and 127:
104 Chapter 11. Dictionaries >>> en
- Page 128 and 129:
106 Chapter 11. Dictionaries 1 >>>
- Page 130 and 131:
108 Chapter 11. Dictionaries dict d
- Page 132 and 133:
110 Chapter 11. Dictionaries Whenev
- Page 134 and 135:
112 Chapter 11. Dictionaries Format
- Page 136 and 137:
114 Chapter 11. Dictionaries Write
- Page 138 and 139:
116 Chapter 12. Tuples If the argum
- Page 140 and 141:
118 Chapter 12. Tuples 12.4 Variabl
- Page 142 and 143:
120 Chapter 12. Tuples 12.6 Diction
- Page 144 and 145:
122 Chapter 12. Tuples 12.8 Debuggi
- Page 146 and 147:
124 Chapter 12. Tuples Exercise 12.
- Page 148 and 149:
126 Chapter 13. Case study: data st
- Page 150 and 151:
128 Chapter 13. Case study: data st
- Page 152 and 153:
130 Chapter 13. Case study: data st
- Page 154 and 155:
132 Chapter 13. Case study: data st
- Page 156 and 157:
134 Chapter 13. Case study: data st
- Page 158 and 159:
136 Chapter 13. Case study: data st
- Page 160 and 161:
138 Chapter 14. Files If the file a
- Page 162 and 163:
140 Chapter 14. Files Similarly, os
- Page 164 and 165:
142 Chapter 14. Files 14.7 Pickling
- Page 166 and 167:
144 Chapter 14. Files The module ob
- Page 168 and 169:
146 Chapter 14. Files Exercise 14.3
- Page 170 and 171:
148 Chapter 15. Classes and objects
- Page 172 and 173:
150 Chapter 15. Classes and objects
- Page 174 and 175:
152 Chapter 15. Classes and objects
- Page 176 and 177:
154 Chapter 15. Classes and objects
- Page 178 and 179:
156 Chapter 16. Classes and functio
- Page 180 and 181:
158 Chapter 16. Classes and functio
- Page 182 and 183:
160 Chapter 16. Classes and functio
- Page 184 and 185:
162 Chapter 17. Classes and methods
- Page 186 and 187:
164 Chapter 17. Classes and methods
- Page 188 and 189:
166 Chapter 17. Classes and methods
- Page 190 and 191:
168 Chapter 17. Classes and methods
- Page 192 and 193:
170 Chapter 17. Classes and methods
- Page 194 and 195:
172 Chapter 18. Inheritance This co
- Page 196 and 197:
174 Chapter 18. Inheritance With th
- Page 198 and 199:
176 Chapter 18. Inheritance Don’t
- Page 200 and 201:
178 Chapter 18. Inheritance Deck *
- Page 202 and 203:
180 Chapter 18. Inheritance try: se
- Page 204 and 205:
182 Chapter 18. Inheritance four of
- Page 206 and 207:
184 Chapter 19. The Goodies We can
- Page 208 and 209:
186 Chapter 19. The Goodies >>> any
- Page 210 and 211:
188 Chapter 19. The Goodies >>> cou
- Page 212 and 213:
190 Chapter 19. The Goodies This is
- Page 214 and 215:
192 Chapter 19. The Goodies 19.11 E
- Page 216 and 217:
194 Appendix A. Debugging If you ar
- Page 218 and 219:
196 Appendix A. Debugging Infinite
- Page 220 and 221:
198 Appendix A. Debugging To simpli
- Page 222 and 223:
200 Appendix A. Debugging you could
- Page 224 and 225:
202 Appendix B. Analysis of Algorit
- Page 226 and 227:
204 Appendix B. Analysis of Algorit
- Page 228 and 229:
206 Appendix B. Analysis of Algorit
- Page 230 and 231:
208 Appendix B. Analysis of Algorit
- Page 232 and 233:
210 Appendix B. Analysis of Algorit
- Page 234 and 235:
212 Index break statement, 66 bubbl
- Page 236 and 237:
214 Index IndexError, 72, 78, 90, 1
- Page 238 and 239:
216 Index interface, 33, 36, 169, 1
- Page 240 and 241:
218 Index object, 74, 79, 95, 96, 1
- Page 242 and 243:
220 Index scatter, 118, 123, 191 Sc
- Page 244:
222 Index updating, 64 variable-len