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
Updated notebook versions
[cas-master-teacher-training.git]
/
programming.html
diff --git
a/programming.html
b/programming.html
index 3323da422795aefe98923a9d09883cc958948fcc..b77ef4237e815b287a6dc1b8e58d5fe6d41afe91 100644
(file)
--- a/
programming.html
+++ b/
programming.html
@@
-50,8
+50,7
@@
<body>
<textarea id="source">
<body>
<textarea id="source">
-# Programming strategy
-
+# Programming strategy ![Open University logo](oulogo_hor.png)
## Moving up a level
Data structures
## Moving up a level
Data structures
@@
-64,7
+63,7
@@
Seeing alternatives
layout: true
layout: true
-.indexlink[[Index](index.html)]
+.indexlink[
![Open University logo](oulogo_hor.png)
[Index](index.html)]
---
---
@@
-316,13
+315,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):