Skip to content

Commit b5330cb

Browse files
committed
Avoid the variable name 'char'
This changes a variable name from ```char``` to ```letter``` to avoid possible confusion of learners with previous experience in other programming languages that do have a character data type.
1 parent 6f44f71 commit b5330cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_episodes/05-loop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ so we should always use it when we can.
307307
> Given the following loop:
308308
> ~~~
309309
> word = 'oxygen'
310-
> for char in word:
311-
> print(char)
310+
> for letter in word:
311+
> print(letter)
312312
> ~~~
313313
> {: .language-python}
314314
>

0 commit comments

Comments
 (0)