projects
/
cas-master-teacher-training.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed typos found in presentation
[cas-master-teacher-training.git]
/
programming.html
diff --git
a/programming.html
b/programming.html
index 64f013fd446d4ca00886ca14e5f3915a93705f75..fb855a26af019ddd096bf26c6b965c082a010c21 100644
(file)
--- a/
programming.html
+++ b/
programming.html
@@
-203,7
+203,7
@@
Must be part of your mental model
* Use any type as the value
```python
* Use any type as the value
```python
-neil = {'first_name':
Neil', 'surname':
Smith', 'age': 44}
+neil = {'first_name':
'Neil', 'surname': '
Smith', 'age': 44}
neil['surname']
```
neil['surname']
```
@@
-316,13
+316,14
@@
Turn the Euler 11 grid into:
Do both with explicit iteration, then using only comprehensions.
Do both with explicit iteration, then using only comprehensions.
----
-
-# Solutions with explicit loops
```python
grid_nums = [int(n) for n in GRID_STRING.split()]
```
```python
grid_nums = [int(n) for n in GRID_STRING.split()]
```
+---
+
+# Solutions with explicit loops
+
```python
g1 = []
for rowstart in range(0, ROWS * COLUMNS, COLUMNS):
```python
g1 = []
for rowstart in range(0, ROWS * COLUMNS, COLUMNS):
@@
-419,8
+420,21
@@
p.x + p.y
---
---
+# Data, not algorithms
+
+Don't put complex, changable logic into code
+
+Build a data structure that describes it, code that reads it.
+
+* Euler 11 directions
+* Multiple choice quiz
+
+---
+
# Algorithms: trading space for time
# Algorithms: trading space for time
+## Euler 14
+
</textarea>
<script src="http://gnab.github.io/remark/downloads/remark-0.6.0.min.js" type="text/javascript">
</script>
</textarea>
<script src="http://gnab.github.io/remark/downloads/remark-0.6.0.min.js" type="text/javascript">
</script>