Skip to content

Commit 7d7c2a4

Browse files
committed
Fix broken link
Fixes #56 Thanks https://github.com/LenKiMo
1 parent e4a27c7 commit 7d7c2a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

control_flow.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Note that `range()` generates only one number at a time, if you want the full li
9696

9797
The `for` loop then iterates over this range - `for i in range(1,5)` is equivalent to `for i in [1, 2, 3, 4]` which is like assigning each number (or object) in the sequence to i, one at a time, and then executing the block of statements for each value of `i`. In this case, we just print the value in the block of statements.
9898

99-
Remember that the `else` part is optional. When included, it is always executed once after the `for` loop is over unless a <<the_break_statement,break>> statement is encountered.
99+
Remember that the `else` part is optional. When included, it is always executed once after the `for` loop is over unless a [break](#break-statement) statement is encountered.
100100

101101
Remember that the `for..in` loop works for any sequence. Here, we have a list of numbers generated by the built-in `range` function, but in general we can use any kind of sequence of any kind of objects! We will explore this idea in detail in later chapters.
102102

0 commit comments

Comments
 (0)