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 3323da422795aefe98923a9d09883cc958948fcc..fb855a26af019ddd096bf26c6b965c082a010c21 100644
(file)
--- a/
programming.html
+++ b/
programming.html
@@
-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):