Skip to content

Commit 731b679

Browse files
Predict prompts: 'pick a letter, then I reveal the answer' instead of 'before the next slide'
1 parent 9931730 commit 731b679

18 files changed

Lines changed: 48 additions & 48 deletions

‎_repo-md/lectures/lec_01_introduction.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ Materials live in the KLU portal and are hosted at [beyondsimulations.github.io/
107107

108108
## One account, today: GitHub
109109

110-
- Open [github.com](https://github.com) → **Sign up**. Phones out for the verification code, this takes **five minutes, right now**
110+
- Open [github.com](https://github.com) → **Sign up**. This takes **five minutesa and we just do it right now in class**
111111
- Use an e-mail you'll still read next year; your **KLU address** works well
112-
- Pick a username you'd be happy to show a future employer
112+
- Pick a username you'd be happy to show a future employer in case you might continue programming in the future
113113
- Already have one? Great, you're done
114114

115115
. . .
@@ -230,7 +230,7 @@ a\) `<class 'float'>` b) `<class 'int'>` c) `<class 'str'>`
230230

231231
. . .
232232

233-
<span class="question">Predict first</span>. Commit to an answer before the next slide.
233+
<span class="question">Predict first</span>. Pick a letter, then I reveal the answer.
234234

235235
## Answer: `type("9.99")`
236236

‎_repo-md/lectures/lec_02_control.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ a\) `Gold` b) `Bronze` c) `Silver`
172172

173173
. . .
174174

175-
<span class="question">Predict first</span>. Commit to an answer before the next slide.
175+
<span class="question">Predict first</span>. Pick a letter, then I reveal the answer.
176176

177177
## Answer: the first true branch wins
178178

@@ -208,7 +208,7 @@ a\) `False` b) `True` c) `Error`
208208

209209
. . .
210210

211-
<span class="question">Predict first</span>. Commit to an answer before the next slide.
211+
<span class="question">Predict first</span>. Pick a letter, then I reveal the answer.
212212

213213
## Answer: `22 < 22`
214214

‎_repo-md/lectures/lec_03_functions.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ a\) `8.50 EUR` b) `Error` c) `None`
132132

133133
. . .
134134

135-
<span class="question">Predict first</span>. Commit to an answer before the next slide.
135+
<span class="question">Predict first</span>. Pick a letter, then I reveal the answer.
136136

137137
## Answer: `print` shows, `return` hands back
138138

@@ -234,7 +234,7 @@ a\) `3` b) `13` c) `Error`
234234

235235
. . .
236236

237-
<span class="question">Predict first</span>. Commit to an answer before the next slide.
237+
<span class="question">Predict first</span>. Pick a letter, then I reveal the answer.
238238

239239
## Answer: the outside variable is untouched
240240

‎_repo-md/lectures/lec_04_dimensions.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ a\) `['M', 'L', 'XL']` b) `['M', 'L']` c) `['S', 'M', 'L']`
162162

163163
. . .
164164

165-
<span class="question">Predict first</span>. Commit to an answer before the next slide.
165+
<span class="question">Predict first</span>. Pick a letter, then I reveal the answer.
166166

167167
## Answer: the `stop` index is excluded
168168

@@ -339,7 +339,7 @@ a\) prints `None` b) prints `""` c) raises `KeyError` d) adds `"Cola"`
339339

340340
. . .
341341

342-
<span class="question">Predict first</span>. Commit to an answer before the next slide.
342+
<span class="question">Predict first</span>. Pick a letter, then I reveal the answer.
343343

344344
## Answer: reading with `[]` demands the key
345345

@@ -495,7 +495,7 @@ a\) `[1, 4, 9, 16]` b) `[2, 4, 6, 8]` c) `[1, 2, 3, 4]`
495495

496496
. . .
497497

498-
<span class="question">Predict first</span>. Commit to an answer before the next slide.
498+
<span class="question">Predict first</span>. Pick a letter, then I reveal the answer.
499499

500500
## Answer: square each item
501501

‎_repo-md/lectures/lec_05_errors.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ a\) raises `TypeError` b) prints `Party of 3` c) raises `ValueError`
158158

159159
. . .
160160

161-
<span class="question">Predict first</span>. Commit to an answer before the next slide.
161+
<span class="question">Predict first</span>. Pick a letter, then I reveal the answer.
162162

163163
## Answer: text and numbers won't mix
164164

@@ -301,7 +301,7 @@ a\) it never runs: the program already stopped b) the `try` block runs a second
301301

302302
. . .
303303

304-
<span class="question">Predict first</span>. Commit to an answer before the next slide.
304+
<span class="question">Predict first</span>. Pick a letter, then I reveal the answer.
305305

306306
## Answer: it carries on
307307

‎_repo-md/lectures/lec_06_modules.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ a\) `-3` b) `-2` c) an error
170170

171171
. . .
172172

173-
<span class="question">Predict first</span>. Commit to an answer before the next slide.
173+
<span class="question">Predict first</span>. Pick a letter, then I reveal the answer.
174174

175175
## Answer: floor goes down, not toward zero
176176

@@ -215,10 +215,10 @@ random.shuffle(queue) # reorders the list in place
215215
print(queue)
216216
```
217217

218-
0.9581065475815979
219-
19
220-
mocha
221-
[3, 5, 2, 1, 4]
218+
0.5886390402644602
219+
7
220+
tea
221+
[5, 3, 2, 1, 4]
222222

223223
. . .
224224

@@ -235,8 +235,8 @@ print([random.randint(1, 20) for _ in range(5)]) # _ : a loop name we never us
235235
print([random.randint(1, 20) for _ in range(5)]) # ...and again, different!
236236
```
237237

238-
[13, 11, 16, 5, 6]
239-
[10, 4, 18, 10, 5]
238+
[15, 8, 18, 7, 20]
239+
[19, 17, 1, 13, 5]
240240

241241
. . .
242242

@@ -282,7 +282,7 @@ a\) different: the second list continues where the first stopped b) equal: the s
282282

283283
. . .
284284

285-
<span class="question">Predict first</span>. Commit to an answer before the next slide.
285+
<span class="question">Predict first</span>. Pick a letter, then I reveal the answer.
286286

287287
## Answer: different
288288

‎_repo-md/lectures/lec_07_scientific.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ a\) `[1, 2, 3, 1, 2, 3]` b) `[2, 4, 6]` c) an error
158158

159159
. . .
160160

161-
<span class="question">Predict first</span>. Commit to an answer before the next slide.
161+
<span class="question">Predict first</span>. Pick a letter, then I reveal the answer.
162162

163163
## Answer: lists repeat, arrays compute
164164

@@ -243,7 +243,7 @@ a\) `True` b) `2` c) `[False, True, True]`
243243

244244
. . .
245245

246-
<span class="question">Predict first</span>. Commit to an answer before the next slide.
246+
<span class="question">Predict first</span>. Pick a letter, then I reveal the answer.
247247

248248
## Answer: True counts as 1
249249

@@ -367,7 +367,7 @@ a\) `week.sum(axis=1)` b) `week.sum()` c) `week.sum(axis=0)`
367367

368368
. . .
369369

370-
<span class="question">Predict first</span>. Commit to an answer before the next slide.
370+
<span class="question">Predict first</span>. Pick a letter, then I reveal the answer.
371371

372372
## Answer: collapse the days, keep the zones
373373

‎_repo-md/lectures/lec_08_pandas.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ a\) prints a summary table b) raises an `AttributeError` c) returns an empty Dat
106106

107107
. . .
108108

109-
<span class="question">Predict first</span>. Commit to an answer before the next slide.
109+
<span class="question">Predict first</span>. Pick a letter, then I reveal the answer.
110110

111111
## Answer: the method never existed
112112

@@ -324,7 +324,7 @@ a\) an empty table, no error b) the Nord rows anyway: case is ignored c) a `KeyE
324324

325325
. . .
326326

327-
<span class="question">Predict first</span>. Commit to an answer before the next slide.
327+
<span class="question">Predict first</span>. Pick a letter, then I reveal the answer.
328328

329329
## Answer: an empty table, no warning
330330

‎_repo-md/lectures/lec_09_plotting.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ a\) one chart with two lines b) two separate charts, one per call c) an error: t
151151

152152
. . .
153153

154-
<span class="question">Predict first</span>. Commit to an answer before the next slide.
154+
<span class="question">Predict first</span>. Pick a letter, then I reveal the answer.
155155

156156
## Answer: one chart, two lines
157157

@@ -277,7 +277,7 @@ a\) 4: one bar per number b) 15: one bar per unit up to the max c) about 2--3 lu
277277

278278
. . .
279279

280-
<span class="question">Predict first</span>. Commit to an answer before the next slide.
280+
<span class="question">Predict first</span>. Pick a letter, then I reveal the answer.
281281

282282
## Answer: about 2--3 lumps
283283

‎lectures/lec_01_introduction.qmd‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ Learning the basics *without* AI first is what lets you judge AI output later.
108108

109109
## One account, today: GitHub
110110

111-
- Open [github.com](https://github.com) → **Sign up**. Phones out for the verification code, this takes **five minutes, right now**
111+
- Open [github.com](https://github.com) → **Sign up**. This takes **five minutesa and we just do it right now in class**
112112
- Use an e-mail you'll still read next year; your **KLU address** works well
113-
- Pick a username you'd be happy to show a future employer
113+
- Pick a username you'd be happy to show a future employer in case you might continue programming in the future
114114
- Already have one? Great, you're done
115115

116116
. . .
@@ -231,7 +231,7 @@ a\) `<class 'float'>` b) `<class 'int'>` c) `<class 'str'>`
231231

232232
. . .
233233

234-
[Predict first]{.question}. Commit to an answer before the next slide.
234+
[Predict first]{.question}. Pick a letter, then I reveal the answer.
235235

236236
## Answer: `type("9.99")`
237237

0 commit comments

Comments
 (0)