Skip to content

Commit

Permalink
Remove extra spaces from 05-loop.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Maascha authored Apr 15, 2024
1 parent a76dcdd commit ba5394b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions episodes/05-loop.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ print(odds[3])
This is a bad approach for three reasons:

1. **Not scalable**. Imagine you need to print a list that has hundreds
of elements. It might be easier to type them in manually.
of elements. It might be easier to type them in manually.

2. **Difficult to maintain**. If we want to decorate each printed element with an
asterisk or any other character, we would have to change four lines of code. While
Expand Down Expand Up @@ -159,7 +159,7 @@ of the loop body (e.g. `end for`); everything indented after the `for` statement

In the example above, the loop variable was given the name `num` as a mnemonic;
it is short for 'number'.
We can choose any name we want for variables. We might just as easily have chosen the name
We can choose any name we want for variables. We might just as easily have chosen the name
`banana` for the loop variable, as long as we use the same name when we invoke the variable inside
the loop:

Expand Down

0 comments on commit ba5394b

Please sign in to comment.