8000 Updating slides and fixing area/volume mistake · zfoxpython/intro-to-python@8b69408 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8b69408

Browse files
committed
Updating slides and fixing area/volume mistake
1 parent 1c522e7 commit 8b69408

File tree

6 files changed

+34
-33
lines changed

6 files changed

+34
-33
lines changed

session_07/slides/session_7.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -368,11 +368,11 @@ hello("Charlie", 17)
368368
# Functions — Parameters
369369

370370
```python
371-
def area(x, y, z):
372-
print("The area is " + str(x * y * z))
371+
def volume(x, y, z):
372+
print("The volume is " + str(x * y * z))
373373

374-
area(12, 3, 4)
375-
area(6, 14, 10)
374+
volume(12, 3, 4)
375+
volume(6, 14, 10)
376376
```
377377

378378
---
@@ -394,11 +394,11 @@ def <function_name>(<param_1>, <param_2>, ...):
394394
# Functions — Returning
395395

396396
```python
397-
def area(x, y, z):
397+
def volume(x, y, z):
398398
return x * y * z
399399

400-
cube1 = area(12, 3, 4)
401-
cube2 = area(6, 14, 10)
400+
cube1 = volume(12, 3, 4)
401+
cube2 = volume(6, 14, 10)
402402
```
403403

404404
---

session_08/slides/session_8.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -270,23 +270,23 @@ hello("Charlie", 17)
270270
# Functions — Parameters
271271

272272
```python
273-
def area(x, y, z):
274-
print("The area is " + str(x * y * z))
273+
def volume(x, y, z):
274+
print("The volume is " + str(x * y * z))
275275

276-
area(12, 3, 4)
277-
area(6, 14, 10)
276+
volume(12, 3, 4)
277+
volume(6, 14, 10)
278278
```
279279

280280
---
281281

282282
# Functions — Returning
283283

284284
```python
285-
def area(x, y, z):
285+
def volume(x, y, z):
286286
return x * y * z
287287

288-
cube1 = area(12, 3, 4)
289-
cube2 = area(6, 14, 10)
288+
cube1 = volume(12, 3, 4)
289+
cube2 = volume(6, 14, 10)
290290
```
291291

292292
---

session_09/slides/session_9.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# [fit] IHF: Code
22
## [fit] Python — Session 9 — Lesson
3-
### Live at 2pm
3+
### Live at 10am
44

55
---
66

@@ -164,12 +164,12 @@ hello("Charlie", 17)
164164
# Functions — Returning
165165

166166
```python
167-
def area(x, y, z):
167+
def volume(x, y, z):
168168
return x * y * z
169169

170170

171-
cube1 = area(12, 3, 4)
172-
cube2 = area(6, 14, 10)
171+
cube1 = volume(12, 3, 4)
172+
cube2 = volume(6, 14, 10)
173173
```
174174

175175
---
@@ -234,7 +234,7 @@ f.close()
234234
---
235235

236236
## Any Questions?
237-
### sli.do #ihfcode
237+
### sli.do #python2020
238238

239239
---
240240

@@ -666,7 +666,7 @@ print(latest_stock)
666< 2364 code>666
# Packing / Unpacking
667667

668668
```python
669-
def area(x, y, z):
669+
def volume(x, y, z):
670670
return x * y * z
671671

672672
data = [
@@ -676,11 +676,11 @@ data = [
676676
]
677677

678678
for x in data:
679-
print(area(**x))
679+
print(volume(**x))
680680

681-
# area(x = 3, y = 12, z = 4)
682-
# area(x = 6, y = 9, z = 8)
683-
# area(x = 2, y = 15, z = 10)
681+
# volume(x = 3, y = 12, z = 4)
682+
# volume(x = 6, y = 9, z = 8)
683+
# volume(x = 2, y = 15, z = 10)
684684
```
685685

686686
---
@@ -707,10 +707,10 @@ add_contact(**contact)
707707
---
708708

709709
### Questions?
710-
### go to sli.do #ihfcode
710+
### go to sli.do #python2020
711711

712712
---
713713

714714
# [fit] Next Session
715-
### Thursday 4th June 2pm
715+
### Thursday 9th July 10am
716716
### Answers

session_10/slides/answers_10.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# [fit] IHF: Code
22
## [fit] Python — Session 10 — Answers
3-
### Live at 2pm
3+
### Live at 10am
44

55
---
66

@@ -13,8 +13,8 @@
1313

1414
---
1515

16-
# Quiz
17-
## www.kahoot.it
16+
# [fit] Extra Projects / DoE
17+
### Tuesday 21st July 10am
1818

1919
---
2020

@@ -28,7 +28,7 @@
2828
---
2929

3030
# [fit] Extra Projects / DoE
31-
### Tuesday 16th June 2pm
31+
### Tuesday 21st July 10am
3232

3333
---
3434

session_11/slides/session_11.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# [fit] IHF: Code
22
## [fit] Python — Making Games
3-
### Live at 2pm
3+
### Live at 10am
44

55
---
66

@@ -192,5 +192,5 @@ B 14
192192
---
193193

194194
# [fit] Next Session
195-
### Tuesday 23rd June 2pm
195+
### Tuesday 4th August 10am
196196
### Making Games Continued

session_12/slides/session_12.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
---
1515

1616
# DoE
17+
## uk-dlihfcode@kpmg.co.uk
1718

1819
---
1920

@@ -51,5 +52,5 @@
5152
---
5253

5354
# [fit] Next Session
54-
### Tuesday 7th July 2pm
55+
### Tuesday 4th August 10am
5556
### Making Games Continued

0 commit comments

Comments
 (0)
0