Skip to content

Commit a3d69c6

Browse files
author
Stephen Childs
committed
Fix callout formatting instruction in loops lesson.
For the "What's in a name?" callout block in lesson 2, the block was not being rendered as a callout. This change fixes that formatting.
1 parent 4f56886 commit a3d69c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_episodes/02-loop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ and we must indent anything we want to run inside the loop. Unlike many other la
155155
command to signify the end of the loop body (e.g. end for); what is indented after the for statement belongs to the loop.
156156

157157

158-
> ## What's in a name? {.callout}
158+
> ## What's in a name?
159159
> In the example above, the loop variable was given the name `char` as a mnemonic; it is short for 'character'. 'Char' is not a keyword in Python that pulls the characters from words or strings. In fact when a similar loop is run over a list rather than a word, the output would be each member of that list printed in order, rather than the characters.
160160
>~~~ {.python}
161161
>list = ['oxygen','nitrogen','argon']
@@ -184,7 +184,7 @@ command to signify the end of the loop body (e.g. end for); what is indented aft
184184
>n
185185
>~~~
186186
> It is a good idea to choose variable names that are meaningful, otherwise it would be more difficult to understand what the loop is doing.
187-
187+
{: .callout}
188188
189189
Here's another loop that repeatedly updates a variable:
190190

0 commit comments

Comments
 (0)