-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
524 lines (510 loc) · 30.9 KB
/
index.html
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
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>BSCL - Learning to Code I</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/black.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- Font Awesome Tie-in -->
<link rel="stylesheet" href="css/all.css">
<!-- Custom CSS Tie-in -->
<link rel="stylesheet" href="css/custom.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match(/print-pdf/gi) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName('head')[0].appendChild(link);
</script>
</head>
<body>
<div class="reveal">
<span class="slides">
<section id="intro">
<img src="img/LearnToCode.jpg" />
</section>
<section id="welcome">
<section>
<h2>Welcome!</h2>
<p>Let's introduce a few folks!</p>
</section>
<section>
<h2>Bonner Springs City Library</h2>
<div>
<img src="img/bscl-header.png" />
</div>
</section>
<section data-background-iframe="http://kctechgroup.org">
</section>
</section>
<section id="thanks">
<h2>Thanks to our sponsors!</h2>
<p>Several folks donated time and resources to make this effort possible!</p>
<br/>
<table class="center" style="color: dodgerblue;">
<tr>
<td>Members of KC Tech Group!</td>
</tr>
<tr>
<td>Your City Library Staff!</td>
</tr>
</table>
</section>
<section id="why_code">
<section>
<h1>Why Code?</h1>
</section>
<section>
<h2>Broad Applicability</h2>
<div class="fragment">
<p>Work in Any Industry!</p>
<p> 🚜 🛩 🏭 👩🎨</p>
</div>
<p class="fragment">Be in Demand!</p>
<p class="fragment">Work Anywhere!</p>
<small class="fragment">
<em>Possibly even from home!</em>
</small>
</section>
<section>
<h2>Solve Problems!</h2>
<p class="fragment">Work in teams!</p>
<p class="fragment">Create Value!</p>
<p class="fragment">Iterate and Improve!</p>
</section>
<section>
<h2>Enjoyment!</h2>
<p class="fragment">Coding can be fun!</p>
<p class="fragment">It can be rewarding!</p>
</section>
</section>
<section id="agenda" data-background-color="#447EFF">
<h1>Agenda</h1>
<table>
<tr>
<td>Getting Started</td>
<td>5:30</td>
</tr>
<tr>
<td>Programming Concepts Intro</td>
<td>5:40</td>
</tr>
<tr>
<td>Worksheet I</td>
<td>6:00</td>
</tr>
<tr>
<td>Functions</td>
<td>6:30</td>
</tr>
<tr>
<td>Worksheet II</td>
<td>6:45</td>
</tr>
<tr>
<td>Wrap-up</td>
<td>7:15</td>
</tr>
</table>
</section>
<section id="technologies" data-background-color="#fff">
<section>
<h1>Technologies</h1>
<p>What are we going to be using today?</p>
</section>
<section>
<h1>The Hardware</h1>
<p>Raspberry Pi</p>
<img src="img/raspi-logo-med.png" alt="Raspberry Pi Logo">
</section>
<section>
<h1>The Language</h1>
<img src="img/python-logo-generic.svg" alt="Python Logo">
</section>
<section>
<!-- <h2>Minecraft</h2> -->
<h1>The Fun</h1>
<!-- Would be nice if I could find an SVG file of this or convert this svg element out to external file -->
<svg viewBox="0 0 252 43" id="minecraft" width="100%" height="100%">
<g fill="#B4ACA8" fill-rule="evenodd">
<g fill="#030303">
<path d="M11.1 42.4L.2 32.4 10.4.7h12.1l5.6 7.6.6-2.2H32L33.4.7 45.8.6l.6 1.1.2-1.1h12.5l.5 1.1.2-1.1h12.6l2.2 5.6h.3l.4 1 1-6.6h12.8l.3 1 .1-1h26.3l1.3 11.9-.3 7.1h-.5l.4 3.5-.3 7.6h-.6l.5 3.8-.3 7.9H89.8l-.3-1-.1 1H76.7l-3-6.2-.9 6.2H60.3l-.6-1-.2 1H47.2l-.7-.9-.2.9H34l-5.2-6h-3.2l-.8-.8-1.8 6.8zm144.7-1l-.2 1h-13.1l-1-29.9 1.1-12H169l.1 1.1.3-1.1h26.2l.2 1.1.5-1.1h25.9l.3 1 .6-1h25.7l2.4 7.6-5.1 6.1v.1c.4 1.2.7 2.4 1.1 3.6.3.9 1.8 5.7 1.8 5.7l.8 2.7c.2.8.5 1.6.7 2.4l.7 2.4.3 1.1-10.2 10.1h-12.2L224.4 23l-5.4 7.5h-3.8l.3 1.5-7.2 10.2h-12.5l-.2-1-.6 1h-12.6l-.1-1-.5 1h-12.7l-.1-1.1-.4 1.1h-12.9l.1-.8z"></path>
<path d="M114.8 31.9L115.9.6l26.6-.1.2 7.4-.9 11.7h-12.3l-.1 4h13.8l.2 8.3-1 10.5h-26.3z"></path>
</g>
<path fill="url(#minecraft-a)" d="M20.9 5.9l-1.6 5.8h7.3L28.1 6h3.3L32.8.5h9.6l-6.7 29.1H25.3l3.1-12.3h-3.7l-1.6 6h-6.7l1.7-6.1-3.8.1-3.7 12.3H.5L9.8.6h9.4l-1.5 5.2z"
transform="translate(2 2)"></path>
<path fill="url(#minecraft-b)" d="M55.7.6l-5.8 29.1H39.6L46.1.6z" transform="translate(2 2)"></path>
<path fill="url(#minecraft-a)" d="M69.6 20.2l.9-6h-3.7l-2.5 15.4H53.9L59.4.5H69l-.9 5.4 3.3.1-.8 5.6h3.7L75.9.5h9.6l-3.4 29.1H71.8l1.3-9.3zm41.5 3.4l-.3 6H86.1L89.2.5h22.9l-.3 5.1H98.4l-.5 6h13.7l-.3 5.6H97.4l-.4 6.3zM245.4.3l1.6 5.2h-6.7v.2c.3 1.1.6 2.3.9 3.4.3 1.2.7 2.4 1 3.6.4 1.2.7 2.4 1.1 3.7.4 1.2.8 2.5 1.1 3.7.2.8.5 1.5.7 2.3.2.8.5 1.6.7 2.3.2.8.5 1.6.7 2.4.2.8.5 1.6.7 2.4h-10.4l-6.6-24h-6.7L222.2.3h23.2z"
transform="translate(2 2)"></path>
<path fill="url(#minecraft-c)" d="M221.4 11.4l1.4 5.8h-14l2.6 12.3H201L195.7.4h23l1.2 5.1h-13.5l1.2 5.9z" transform="translate(2 2)"></path>
<path d="M181.3 20.1l1.3 9.4h-10.4L169 .4h23l5 29.2h-10.4l-1.4-9.4-3.9-.1zm6.8-11.4l-.6-3.7H183l.4 3.4h-3.6l-.5-3.4h-4.4l.5 3.7h4l.2 1.4h-2l.7 5.7h2.4l-.2-1.9h3.6l.3 2h2.5l-.9-5.7h-2l-.2-1.4 4.3-.1z"
fill="url(#minecraft-d)" transform="translate(2 2)"></path>
<path d="M163.3 14.5h3.4l1.5 15.1h-10.4l-.9-12.3-3.9-.1.8 12.4h-10.4L142.3.5h23l1.1 10.8H163l.3 3.2zm-6.8-2.9l-.4-6h-3.7l.4 6h3.7z"
fill="url(#minecraft-e)" transform="translate(2 2)"></path>
<path fill="url(#minecraft-f)" d="M125.5 5.6h13.3l-.1-5.2-23 .1-.9 29.1h24.7l-.2-6h-14.1z" transform="translate(2 2)"></path>
<path d="M4 31.6c-.8 0-1 .5-.4 1l7.2 6.9c.6.6 1.8 1 2.6 1h6.2c.8 0 1-.5.5-1.1l-6.3-6.7c-.6-.6-1.7-1.1-2.5-1.1H4zm24.8 0c-.8 0-1.1.5-.5 1.1l5.6 6.6c.5.6 1.6 1.1 2.5 1.1h6.5c.8 0 1.1-.5.6-1.2l-4.9-6.5c-.5-.7-1.6-1.2-2.4-1.2l-7.4.1z"
fill="#29282A"></path>
<path d="M19.9 25.3c-.8 0-1.1.5-.5 1.1l6.2 7c.5.6 1.5 1.1 2.1 1.1.6 0 .7-.6.2-1.3l-.3-.4c-.5-.7-.7-1.9-.5-2.7v-.2c.2-.8 0-2-.5-2.6l-.6-.9c-.5-.6-1.6-1.2-2.4-1.2l-3.7.1zm23.2 6.4c-.8 0-1.1.5-.6 1.2l4.7 6.5c.5.7 1.6 1.2 2.4 1.2H56c.8 0 1.1-.6.7-1.3l-4-6.3c-.4-.7-1.5-1.3-2.3-1.3h-7.3zm14.3-.1c-.8 0-1.1.6-.7 1.3l3.8 6.3c.4.7 1.5 1.3 2.3 1.3h6.3c.8 0 1.2-.6.8-1.3l-3-6.2c-.4-.7-1.3-1.3-2.2-1.3l-7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-1.7-.6z"
fill="#030303"></path>
<path d="M232.1 8.5c-.2-.2-.4-1-.5-1.8-.1-.8.1-.8.3 0l.2.7c.3.8.3 1.3 0 1.1z" opacity=".5" fill="#030303"></path>
<path d="M198.5 26.2l-1.8-.7c-.8-.3-.7-.5.1-.4l1.9.2" fill="#030303"></path>
<path d="M126 32.3c.1-.4.1-1 0-1.4-.1-.4-.9-.7-1.8-.7h-.5c-.8 0-1.7.4-2 .8-.3.4.2 1 1 1.2l1.6.4c.8.2 1.6.1 1.7-.3z" opacity=".5"
fill="#030303"></path>
<path d="M124.8 31.2c-.5-.5-.5-1 .1-1 .5 0 1.2.3 1.4.6.3.3.1 1.2-.3 1.8-.4.7-.7.9-.5.4 0-.4-.3-1.2-.7-1.8zM77 7.5c.1-.4.8-.6 1.6-.4h.1c.8.2.8.5 0 .7l-.3.1c-.9.2-1.5 0-1.4-.4zm-34.2 5.7c-.1.3-.9.3-1.7.1h-.2c-.8-.2-.8-.4 0-.4h.6c.9-.1 1.4.1 1.3.3zM15.3 24.9c.1-.3-.4-.5-1.3-.3l-.9.2c-.8.2-.8.4 0 .5l.4.1c.9 0 1.7-.2 1.8-.5z"
fill="#030303"></path>
<path d="M17.4 36c-.2-.3-.2-1.1 0-1.9l.2-.7c.2-.8.4-.8.4.1l-.1 1.5c-.1.8-.3 1.3-.5 1zm26.4 3.5c-.2-.1-.2-.8 0-1.4.2-.6.4-.5.4.3s-.2 1.3-.4 1.1zm23.8-15.9c0-.5.2-.2.5.5l.1.2c.3.8.3 1.1 0 .8-.3-.3-.6-1-.6-1.5zM200 36.3c.3-.2.3-1 .1-1.8l-.2-.8c-.2-.8-.4-.8-.4.1v1.4c0 .8.2 1.3.5 1.1zm34.8-.3c.4-.2.4-1 .1-1.7l-1.3-2.8c-.3-.7-.5-.7-.4.1l.6 3.3c.2.8.6 1.3 1 1.1zm1.5-12.9c-.1-.3-.6.1-.9.8l-1.3 2.7c-.4.7-.3.8.2.1l1.4-1.9c.5-.6.7-1.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.3.3.1.1.9.3 1.7.3h2.7c.8 0 1.6-.1 1.7-.3.1-.2-.5-.3-1.3-.3h-3.5zm15.6 11.1c-.8 0-1.5.2-1.4.3.1.1.7.3 1.5.3s1.4-.1 1.5-.3c0-.2-.7-.3-1.6-.3zm-2.1-18.5c-.8-.1-1.4 0-1.4.1.1.2.8.4 1.6.5l1.1.1c.8.1 1.6.1 1.7-.1.1-.2-.5-.4-1.3-.5l-1.7-.1zm68.1 12.5c-.8-.1-1.4 0-1.4.1.1.2.8.4 1.6.5l1.1.1c.8.1 1.6.1 1.7-.1.1-.2-.5-.4-1.3-.5l-1.7-.1zm-2.6-12.1c-.6 0-1 .2-1 .3 0 .1.5.3 1 .3s.9-.1 1-.3c0-.3-.5-.4-1-.3zm32.3 7.3c-.8 0-1.4.1-1.3.3.1.1.9.3 1.7.3h2.7c.8 0 1.6-.1 1.7-.3.1-.2-.5-.3-1.3-.3h-3.5zm26.1-11.7c-.8 0-1.4.2-1.4.3.1.1.8.3 1.6.3h1.1c.8 0 1.6-.1 1.6-.3.1-.2-.5-.3-1.4-.3h-1.5zm-117.2 24c-.8 0-1.4.1-1.2.3.1.1.9.3 1.7.3h4.8c.8 0 1.6-.1 1.7-.3.1-.2-.4-.3-1.2-.3h-5.8zm-33.3 0c-.8 0-1.3.1-1.2.3.1.2 1 .3 1.8.3h7.3c.8 0 1.6-.1 1.8-.3.2-.2-.3-.3-1.2-.3h-8.5zm12.4 0c-.8 0-1.4.1-1.3.3.1.1.9.3 1.7.3h2.6c.8 0 1.6-.1 1.7-.3.1-.2-.5-.3-1.3-.3h-3.4zm-58.8.1c-.8 0-1.4.2-1.4.3.1.1.8.3 1.6.3h1c.8 0 1.6-.1 1.6-.3.1-.2-.5-.3-1.4-.3h-1.4z"
fill="#E0DBD6"></path>
</g>
</svg>
</section>
</section>
<section>
<h1>Let's Get Started</h1>
<p>We've got to roll through a few basics first.</p>
</section>
<section>
<section>
<h2>Some of what you'll see</h2>
</section>
<section>
<h2>Running Python</h2>
<p>The Python
<strong>REPL</strong> - Read, Eval, Print, and Loop</p>
<pre><code class="nohighlight" data-trim data-noescape>
>>> <span class="fragment"><i class="fa fa-arrow-left"></i> This is the REPL prompt</span>
<span class="fragment">...</span><span class="fragment"> <i class="fa fa-arrow-left"></i> This is what the REPL prompt looks like when it
... expects something based on the previous line.</span>
</code></pre>
<small class="fragment" style="color:lightgray">You can type commands directly and have them processed immediately in Python!</small>
</section>
<section>
<h2>Comments</h2>
<p>Describes your code, but doesn't "run"</p>
<pre><code class="python" data-trim>
# You can comment above a section a code
money = 500
for i in range(5):
money = money * 1.03 # ... and also on the same line
</code></pre>
</section>
<section>
<h2>Errors</h2>
<div class="fragment">
<p>
<q>All of my code starts off perfect.</q>
</p>
<small> -- No programmer ever.</small>
</div>
<div class="fragment">
<pre><code class="nohighlight" data-trim data-noescape>
>>> pi = 3.14
>>> a = pi * (r**2)
Traceback (most recent call last):
File "<stdin>", <mark>line 1</mark>, in <module>
<mark>NameError</mark>: <mark>name 'r' is not defined</mark>
</code></pre>
<br>
<p>Error output includes line number, type, and description of error.</p>
</div>
</section>
</section>
<section>
<section>
<h2>Data Types</h2>
<p>In coding, we deal with many different types of data.</p>
<p class="fragment">Text:
<code>string</code>
</p>
<p class="fragment">Whole numbers like 1, 2, 3, etc:
<code>integer</code>
</p>
<p class="fragment">Numbers like 3.14 or 1.2:
<code>float</code>
</p>
<p class="fragment">On or Off:
<code>boolean</code>
</p>
<p class="fragment">
<em style="color:gray">These are some of the basic built-in data types to get us going!</em>
</p>
</section>
<section>
<h2>String</h2>
<p>Used for text data like words and sentences.</p>
<pre><code class="python" data-trim>
>>> message1 = 'I am a sentence' # you can use single
>>> message2 = " from two parts." # ... or double quotes
>>> message1 + message2 # and glue them together
'I am a sentence from two parts.'
</code></pre>
</section>
<section>
<h2>Integer</h2>
<p>Used for round/whole numbers.</p>
<pre><code class="python" data-trim>
>>> a = 101
>>> b = 50
>>> a + b
151
</code></pre>
</section>
<section>
<h2>Float</h2>
<p>Used for decimal numbers</p>
<pre><code class="python" data-trim>
>>> a = 5.5
>>> b = 2.0
>>> a / b
2.75
</code></pre>
</section>
<section>
<h2>Boolean</h2>
<p><code>True</code> or <code>False</code> conditions</p>
<pre><code class="python" data-trim>
>>> a = 5
>>> b = 4
>>> a > b
True
>>> b > a
False
</code></pre>
</section>
</section>
<section>
<section>
<h2>Variables</h2>
<p>Used to store information in programs.</p>
<pre><code class="python" data-trim>
# Store some numbers in named variables
r = 4
pi = 3.14
coding_is_fun = True
# Keep the string called Kevin in a variable my_name
my_name = 'Kevin'
</code></pre>
<p>The assignment operator (a single <code>=</code>) is used to store information into a variable.</p>
</section>
</section>
<section>
<section>
<h2>Operators</h2>
<p>Used to perform, you guessed it, operations!</p>
<pre><code class="python" data-trim data-noescape>
# Arithmetic Operators
>>> 4 + 5 # 4 plus 5
9
>>> 8 / 4 # 8 divided by 4
2
</code></pre>
<pre><code class="python" data-trim data-noescape>
# Assignment Operators
>>> a = 4 # assign <em>a</em> the value of 4
>>> a += 1 # same as: <em>a = a + 1</em>
>>> a
5
</code></pre>
<pre><code class="python" data-trim data-noescape>
# Comparison Operators (returns Boolean result)
>>> a > 3 # check if <em>a</em> is greater than 3
True
>>> a == 5 # check if <em>a</em> is equal to 5
True
>>> a != 5 # check if <em>a</em> is not equal to 5
False
</code></pre>
</section>
</section>
<section>
<section>
<h2>Expressions</h2>
<p>Compute things and produce a result!</p>
<pre><code class="python" data-trim>
# Math Operations
4 + 5 # 9
pi * (r ** 2) # 50.24
# Combining strings
'my name is ' + my_name # my name is Kevin
</code></pre>
</section>
<section>
<h2>Variables + Expressions</h2>
<p>You can store the result of an expression in a variable</p>
<pre><code class="python" data-trim>
circumference = pi * (r ** 2) # circumference is 50.24
</code></pre>
</section>
</section>
<section>
<section>
<h2>Control Structures</h2>
<p>Allow you to make decisions in your code.</p>
<ul>
<li>Make choices with
<code>if</code> statements</li>
<li>Repeat code sections with
<code>while</code> loops</li>
<li>Iterate through things with
<code>for</code> loops</li>
</ul>
</section>
<section>
<h3>
<code>if</code> Statements</h3>
<p>if <i class="fa fa-arrow-right"></i> elif <i class="fa fa-arrow-right"></i> else</p>
<pre><code class="python" data-trim>
>>> if circumference > 50: # check if greater than 50
... circle_desc = "Big" # if so, describe as Big!
... elif circumference >= 30: # otherwise, check btwn 30 and 50
... circle_desc = "Medium" # if so, describe as Medium!
... else: # otherwise,
... circle_desc = "Small" # describe as Small!
</code></pre>
<br>
<em class="fragment">Indentation is important in Python!</em>
</section>
<section>
<h3><code>while</code> Loops</h3>
<pre><code class="python" data-trim>
>>> a = 1
>>> b = 1
>>> count = 0
>>> while a < 5:
... count += 1
... a = b + 1
... b = b + a
...
>>> print("a: {}, b: {}, count: {}".format(a, b, count))
a: 8, b: 15, count: 3
</code></pre>
</section>
<section>
<h3><code>for</code> Loops</h3>
<pre><code class="python" data-trim data-noescape>
>>> # Begin a loop between 0 and 5 and print the
>>> # value of <em>i</em> at each step
>>> for i in range(5):
... print(i)
...
0
1
2
3
4
</code></pre>
</section>
</section>
<section data-background="https://media.giphy.com/media/TXJiSN8vCERuE/giphy.gif">
<h1>Worksheet Time!</h1>
<p>Time to apply some of what we've learned!</p>
</section>
<section data-background-color="black">
</section>
<section>
<section>
<h2>Functions</h2>
<p>Expressions let us hold onto a computed result.</p>
<p>Functions help us hold onto a set of instructions.</p>
<pre><code class="python" data-trim data-noescape="">
# Declare your function
def hello():
# Then put statements in your function
print("Hello there!")
</code></pre>
<small>You can use the <code>def</code> keyword to "define" a function.</small>
</section>
<section>
<h3>Calling Functions</h3>
<p>Once defined, you can run (aka call) a function by its name.</p>
<pre><code class="nohighlight" data-trim>
>>> hello()
Hello there!
</code></pre>
<small>The <code>()</code> after the name tells Python to run the function.</small>
</section>
<section>
<h3>Arguments</h3>
<p>Not what you have with your siblings. 😆</p>
<div class="fragment">
<pre><code class="python" data-trim>
def hello_there(name):
print("Hello " + name)
</code></pre>
</div>
<small class="fragment">Now we can use <code>name</code> inside our function!</small>
<pre class="fragment"><code class="nohighlight" data-trim>
>>> hello_there('Kevin')
Hello Kevin
</code></pre>
<p class="fragment">Notice that the name we supplied to the function was used in the <code>print</code> function.</p>
</section>
<section>
<h3>Returning information</h3>
<p>Functions can also return information to whatever called them.</p>
<pre class="fragment grow" data-fragment-index="1"><code class="python" data-trim>
# Add two numbers and return the result
def add(x, y):
return x + y
</code></pre>
<br>
<pre class="fragment grow" data-fragment-index="2"><code class="python" data-trim>
>>> add(1, 4)
5
</code></pre>
<em class="fragment" data-fragment-index="2">Very powerful!</em>
</section>
</section>
<section data-background="https://media.giphy.com/media/ZVik7pBtu9dNS/giphy.gif">
<h2>Worksheet Time!</h2>
<p>Let's clean up our code with Functions!</p>
</section>
<section data-background-color="black">
<h1>Thank you!</h1>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
/*global Reveal hljs*/
/*eslint no-undef: "error"*/
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
// The "normal" size of the presentation, aspect ratio will be preserved
// when the presentation is scaled to fit different resolutions. Can be
// specified using percentage units.
width: 960,
height: 700,
// Push each slide change to the browser history
history: true,
// Factor of the display size that should remain empty around the content
margin: 0.2,
slideNumber: 'h.v',
dependencies: [
{ src: 'plugin/markdown/marked.js' },
{ src: 'plugin/markdown/markdown.js' },
{ src: 'plugin/notes/notes.js', async: true },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function () { hljs.initHighlightingOnLoad(); } }
]
});
</script>
</body>
</html>