From 443108f1265d12ba6efa4252a55b4680a68999f0 Mon Sep 17 00:00:00 2001 From: Karen Word Date: Fri, 5 May 2023 11:30:52 -0700 Subject: [PATCH 1/2] Annotate exercise Submission on behalf of a trainee for checkout --- episodes/05-loop.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/episodes/05-loop.md b/episodes/05-loop.md index cfef128db..55eb41089 100644 --- a/episodes/05-loop.md +++ b/episodes/05-loop.md @@ -48,10 +48,11 @@ We'll use a loop to solve this problem, but first let's look at the general form using the pseudo-code below: ```bash -for thing in list_of_things -do - operation_using $thing # Indentation within the loop is not required, but aids legibility -done +for thing in list_of_things # The word "for" indicated the start of a +"For-loop" command +do #The word "do" indicates the start of job execution list + operation_using/command $thing # Indentation within the loop is not required, but aids legibility +done # The word "done" indicates the end of a loop ``` and we can apply this to our example like this: From 7bec7d2c20c9d24499810ae66079e0d16b20131a Mon Sep 17 00:00:00 2001 From: Benson Muite Date: Tue, 16 May 2023 14:19:55 +0300 Subject: [PATCH 2/2] Update episodes/05-loop.md Consistent formatting --- episodes/05-loop.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/episodes/05-loop.md b/episodes/05-loop.md index 55eb41089..8312688e5 100644 --- a/episodes/05-loop.md +++ b/episodes/05-loop.md @@ -48,11 +48,14 @@ We'll use a loop to solve this problem, but first let's look at the general form using the pseudo-code below: ```bash -for thing in list_of_things # The word "for" indicated the start of a -"For-loop" command -do #The word "do" indicates the start of job execution list - operation_using/command $thing # Indentation within the loop is not required, but aids legibility -done # The word "done" indicates the end of a loop +# The word "for" indicated the start of a "For-loop" command +for thing in list_of_things +#The word "do" indicates the start of job execution list +do + # Indentation within the loop is not required, but aids legibility + operation_using/command $thing +# The word "done" indicates the end of a loop +done ``` and we can apply this to our example like this: