-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
Copy pathAA-contrib.php
354 lines (354 loc) · 13.6 KB
/
AA-contrib.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
<?php if ( file_exists("../booktop.php") ) {
require_once "../booktop.php";
ob_start();
}?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>-</title>
<style>
html {
color: #1a1a1a;
background-color: #fdfdfd;
}
body {
margin: 0 auto;
max-width: 36em;
padding-left: 50px;
padding-right: 50px;
padding-top: 50px;
padding-bottom: 50px;
hyphens: auto;
overflow-wrap: break-word;
text-rendering: optimizeLegibility;
font-kerning: normal;
}
@media (max-width: 600px) {
body {
font-size: 0.9em;
padding: 12px;
}
h1 {
font-size: 1.8em;
}
}
@media print {
html {
background-color: white;
}
body {
background-color: transparent;
color: black;
font-size: 12pt;
}
p, h2, h3 {
orphans: 3;
widows: 3;
}
h2, h3, h4 {
page-break-after: avoid;
}
}
p {
margin: 1em 0;
}
a {
color: #1a1a1a;
}
a:visited {
color: #1a1a1a;
}
img {
max-width: 100%;
}
h1, h2, h3, h4, h5, h6 {
margin-top: 1.4em;
}
h5, h6 {
font-size: 1em;
font-style: italic;
}
h6 {
font-weight: normal;
}
ol, ul {
padding-left: 1.7em;
margin-top: 1em;
}
li > ol, li > ul {
margin-top: 0;
}
blockquote {
margin: 1em 0 1em 1.7em;
padding-left: 1em;
border-left: 2px solid #e6e6e6;
color: #606060;
}
code {
font-family: Menlo, Monaco, Consolas, 'Lucida Console', monospace;
font-size: 85%;
margin: 0;
hyphens: manual;
}
pre {
margin: 1em 0;
overflow: auto;
}
pre code {
padding: 0;
overflow: visible;
overflow-wrap: normal;
}
.sourceCode {
background-color: transparent;
overflow: visible;
}
hr {
background-color: #1a1a1a;
border: none;
height: 1px;
margin: 1em 0;
}
table {
margin: 1em 0;
border-collapse: collapse;
width: 100%;
overflow-x: auto;
display: block;
font-variant-numeric: lining-nums tabular-nums;
}
table caption {
margin-bottom: 0.75em;
}
tbody {
margin-top: 0.5em;
border-top: 1px solid #1a1a1a;
border-bottom: 1px solid #1a1a1a;
}
th {
border-top: 1px solid #1a1a1a;
padding: 0.25em 0.5em 0.25em 0.5em;
}
td {
padding: 0.125em 0.5em 0.25em 0.5em;
}
header {
margin-bottom: 4em;
text-align: center;
}
#TOC li {
list-style: none;
}
#TOC ul {
padding-left: 1.3em;
}
#TOC > ul {
padding-left: 0;
}
#TOC a:not(:hover) {
text-decoration: none;
}
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
/* The extra [class] is a hack that increases specificity enough to
override a similar rule in reveal.js */
ul.task-list[class]{list-style: none;}
ul.task-list li input[type="checkbox"] {
font-size: inherit;
width: 0.8em;
margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle;
}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
</style>
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
</head>
<body>
<h1 id="contributions">Contributions</h1>
<h2 id="translations">Translations</h2>
<p>This book hass been translated into a number of languages which can
be found at https://www.py4e.com/book.</p>
<ul>
<li><p>Spanish - Python para todos: Explorando la información con Python
3 - Translated book, autograders, resources, and web site at
https://es.py4e.com Contributors: Juan Carlos Perez Castellanos, Juan
Dougnac, Daniel Merino Echeverría, Jaime Bermeo Ramírez and Fernando
Tardío.</p></li>
<li><p>Italian Python per tutti: Esplorare dati con Python3
Contributors: Alessandro Rossetti and Vittore Zen</p></li>
<li><p>Portuguese - Python Para Todos: Explorando Dados com Python 3
Translation: Yuri Loia de Medeiros</p></li>
<li><p>Polish - Python dla wszystkich: Odkrywanie danych z Python 3
Translated book, autograders, resources, and web site at https://py4e.pl
Translation: Andrzej Wójtowicz (Adam Mickiewicz University in Poznań,
Poland)</p></li>
<li><p>Greek - Translated book, autograders, resources, and web site at
https://gr.py4e.com Translation: Konstantia Kiourtidou</p></li>
<li><p>Arabic - Translation: Electronics Go</p></li>
</ul>
<p>Anyone who is given permission to translate the book agrees to
provide a free copy of the book online. Some of the translations are
available in print and avalailable for purchase.</p>
<h2 id="contributor-list-for-python-for-everybody">Contributor List for
Python for Everybody</h2>
<p>The source for the book is maintained in <code>github</code> and yuo
can find numberous contributors for the book who find and suggest fixes
using pull requests.</p>
<p>https://github.com/csev/py4e/</p>
<p>Look under <code>Insights -> Contributors</code> to see all the
folks who have contributed through <code>github</code>.</p>
<p>Juan Carlos Perez Castellanos, Juan Dougnac, Daniel Merino
Echeverría, Jaime Bermeo Ramírez, Fernando Tardío, Alessandro Rossetti,
Vittore Zen, Yuri Loia de Medeiros, Konstantia Kiourtidou, Andrzej
Wójtowicz, Elliott Hauser, Stephen Catto, Sue Blumenberg, Tamara
Brunnock, Mihaela Mack, Chris Kolosiwsky, Dustin Farley, Jens Leerssen,
Naveen KT, Mirza Ibrahimovic, Naveen (<span class="citation"
data-cites="togarnk">@togarnk</span>), Zhou Fangyi, Alistair Walsh,
Erica Brody, Jih-Sheng Huang, Louis Luangkesorn, and Michael Fudge</p>
<p>You can see contribution details at:</p>
<p>https://github.com/csev/py4e/graphs/contributors</p>
<h2 id="contributor-list-for-python-for-informatics">Contributor List
for Python for Informatics</h2>
<p>Bruce Shields for copy editing early drafts, Sarah Hegge, Steven
Cherry, Sarah Kathleen Barbarow, Andrea Parker, Radaphat Chongthammakun,
Megan Hixon, Kirby Urner, Sarah Kathleen Barbrow, Katie Kujala, Noah
Botimer, Emily Alinder, Mark Thompson-Kular, James Perry, Eric Hofer,
Eytan Adar, Peter Robinson, Deborah J. Nelson, Jonathan C. Anthony, Eden
Rassette, Jeannette Schroeder, Justin Feezell, Chuanqi Li, Gerald
Gordinier, Gavin Thomas Strassel, Ryan Clement, Alissa Talley, Caitlin
Holman, Yong-Mi Kim, Karen Stover, Cherie Edmonds, Maria Seiferle, Romer
Kristi D. Aranas (RK), Grant Boyer, Hedemarrie Dussan,</p>
<h2 id="preface-for-think-python">Preface for “Think Python”</h2>
<h3 id="the-strange-history-of-think-python">The strange history of
“Think Python”</h3>
<p>(Allen B. Downey)</p>
<p>In January 1999 I was preparing to teach an introductory programming
class in Java. I had taught it three times and I was getting frustrated.
The failure rate in the class was too high and, even for students who
succeeded, the overall level of achievement was too low.</p>
<p>One of the problems I saw was the books. They were too big, with too
much unnecessary detail about Java, and not enough high-level guidance
about how to program. And they all suffered from the trap door effect:
they would start out easy, proceed gradually, and then somewhere around
Chapter 5 the bottom would fall out. The students would get too much new
material, too fast, and I would spend the rest of the semester picking
up the pieces.</p>
<p>Two weeks before the first day of classes, I decided to write my own
book. My goals were:</p>
<ul>
<li><p>Keep it short. It is better for students to read 10 pages than
not read 50 pages.</p></li>
<li><p>Be careful with vocabulary. I tried to minimize the jargon and
define each term at first use.</p></li>
<li><p>Build gradually. To avoid trap doors, I took the most difficult
topics and split them into a series of small steps.</p></li>
<li><p>Focus on programming, not the programming language. I included
the minimum useful subset of Java and left out the rest.</p></li>
</ul>
<p>I needed a title, so on a whim I chose <em>How to Think Like a
Computer Scientist</em>.</p>
<p>My first version was rough, but it worked. Students did the reading,
and they understood enough that I could spend class time on the hard
topics, the interesting topics and (most important) letting the students
practice.</p>
<p>I released the book under the GNU Free Documentation License, which
allows users to copy, modify, and distribute the book.</p>
<p> </p>
<p>What happened next is the cool part. Jeff Elkner, a high school
teacher in Virginia, adopted my book and translated it into Python. He
sent me a copy of his translation, and I had the unusual experience of
learning Python by reading my own book.</p>
<p>Jeff and I revised the book, incorporated a case study by Chris
Meyers, and in 2001 we released <em>How to Think Like a Computer
Scientist: Learning with Python</em>, also under the GNU Free
Documentation License. As Green Tea Press, I published the book and
started selling hard copies through Amazon.com and college book stores.
Other books from Green Tea Press are available at <a
href="greenteapress.com">greenteapress.com</a>.</p>
<p>In 2003 I started teaching at Olin College and I got to teach Python
for the first time. The contrast with Java was striking. Students
struggled less, learned more, worked on more interesting projects, and
generally had a lot more fun.</p>
<p>Over the last five years I have continued to develop the book,
correcting errors, improving some of the examples and adding material,
especially exercises. In 2008 I started work on a major revision—at the
same time, I was contacted by an editor at Cambridge University Press
who was interested in publishing the next edition. Good timing!</p>
<p>I hope you enjoy working with this book, and that it helps you learn
to program and think, at least a little bit, like a computer
scientist.</p>
<h3 id="acknowledgements-for-think-python">Acknowledgements for “Think
Python”</h3>
<p>(Allen B. Downey)</p>
<p>First and most importantly, I thank Jeff Elkner, who translated my
Java book into Python, which got this project started and introduced me
to what has turned out to be my favorite language.</p>
<p>I also thank Chris Meyers, who contributed several sections to
<em>How to Think Like a Computer Scientist</em>.</p>
<p>And I thank the Free Software Foundation for developing the GNU Free
Documentation License, which helped make my collaboration with Jeff and
Chris possible.</p>
<p> </p>
<p>I also thank the editors at Lulu who worked on <em>How to Think Like
a Computer Scientist</em>.</p>
<p>I thank all the students who worked with earlier versions of this
book and all the contributors (listed in an Appendix) who sent in
corrections and suggestions.</p>
<p>And I thank my wife, Lisa, for her work on this book, and Green Tea
Press, and everything else, too.</p>
<p>Allen B. Downey<br />
Needham MA<br />
</p>
<p>Allen Downey is an Associate Professor of Computer Science at the
Franklin W. Olin College of Engineering.</p>
<h2 id="contributor-list-for-think-python">Contributor List for “Think
Python”</h2>
<p></p>
<p>(Allen B. Downey)</p>
<p>More than 100 sharp-eyed and thoughtful readers have sent in
suggestions and corrections over the past few years. Their
contributions, and enthusiasm for this project, have been a huge
help.</p>
<p>For the detail on the nature of each of the contributions from these
individuals, see the “Think Python” text.</p>
<p>Lloyd Hugh Allen, Yvon Boulianne, Fred Bremmer, Jonah Cohen, Michael
Conlon, Benoit Girard, Courtney Gleason and Katherine Smith, Lee Harr,
James Kaylin, David Kershaw, Eddie Lam, Man-Yong Lee, David Mayo, Chris
McAloon, Matthew J. Moelter, Simon Dicon Montford, John Ouzts, Kevin
Parks, David Pool, Michael Schmitt, Robin Shaw, Paul Sleigh, Craig T.
Snydal, Ian Thomas, Keith Verheyden, Peter Winstanley, Chris Wrobel,
Moshe Zadka, Christoph Zwerschke, James Mayer, Hayden McAfee, Angel
Arnal, Tauhidul Hoque and Lex Berezhny, Dr. Michele Alzetta, Andy
Mitchell, Kalin Harvey, Christopher P. Smith, David Hutchins, Gregor
Lingl, Julie Peters, Florin Oprina, D. J. Webre, Ken, Ivo Wever, Curtis
Yanko, Ben Logan, Jason Armstrong, Louis Cordier, Brian Cain, Rob Black,
Jean-Philippe Rey at Ecole Centrale Paris, Jason Mader at George
Washington University made a number Jan Gundtofte-Bruun, Abel David and
Alexis Dinno, Charles Thayer, Roger Sperberg, Sam Bull, Andrew Cheung,
C. Corey Capel, Alessandra, Wim Champagne, Douglas Wright, Jared
Spindor, Lin Peiheng, Ray Hagtvedt, Torsten Hübsch, Inga Petuhhov, Arne
Babenhauserheide, Mark E. Casida, Scott Tyler, Gordon Shephard, Andrew
Turner, Adam Hobart, Daryl Hammond and Sarah Zimmerman, George Sass,
Brian Bingham, Leah Engelbert-Fenton, Joe Funke, Chao-chao Chen, Jeff
Paine, Lubos Pintes, Gregg Lind and Abigail Heithoff, Max Hailperin,
Chotipat Pornavalai, Stanislaw Antol, Eric Pashman, Miguel Azevedo,
Jianhua Liu, Nick King, Martin Zuther, Adam Zimmerman, Ratnakar Tiwari,
Anurag Goel, Kelli Kratzer, Mark Griffiths, Roydan Ongie, Patryk
Wolowiec, Mark Chonofsky, Russell Coleman, Wei Huang, Karen Barber, Nam
Nguyen, Stéphane Morin, Fernando Tardio, and Paul Stoop.</p>
</body>
</html>
<?php if ( file_exists("../bookfoot.php") ) {
$HTML_FILE = basename(__FILE__);
$HTML = ob_get_contents();
ob_end_clean();
require_once "../bookfoot.php";
}?>