X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;ds=sidebyside;f=programming.html;fp=programming.html;h=2f965079bb2de400c451e5eb084890a75f8b804d;hb=9909c586038d3205f53a61e1ebca4faf9783c54d;hp=3323da422795aefe98923a9d09883cc958948fcc;hpb=4695b053223ab4a5b5a3f4385767bbc8777c4ca8;p=cas-master-teacher-training.git diff --git a/programming.html b/programming.html index 3323da4..2f96507 100644 --- a/programming.html +++ b/programming.html @@ -316,6 +316,11 @@ Turn the Euler 11 grid into: Do both with explicit iteration, then using only comprehensions. +```python +grid_nums = [int(n) for n in GRID_STRING.split()] +``` + + --- # Solutions with explicit loops