X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=programming.html;h=fb855a26af019ddd096bf26c6b965c082a010c21;hb=c83ef2510a03a1727b4ef7367edd179fab6c37a6;hp=3323da422795aefe98923a9d09883cc958948fcc;hpb=98a88e5d7272254b1b1f6172f4c1e5b848634287;p=cas-master-teacher-training.git diff --git a/programming.html b/programming.html index 3323da4..fb855a2 100644 --- 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. ---- - -# Solutions with explicit loops ```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):