Skip to content

Commit fab0360

Browse files
authored
add "for loop" idx
Clarified definition of a definite loop and its relation to for loops in Python.
1 parent 81b7943 commit fab0360

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/ch5_loopsanditeration.ptx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<p><idx><c>for</c> loop</idx>
1414
<idx>definite loop</idx>
15-
A <term>definite loop</term> is a loop that is executed a specific or definite number of times. In Python, the easiest way to write a definite loop is using the <c>for</c> loop in conjunction with the <c>range</c> function. <xref ref="python-range-options" text="type-global"/> shows the syntax for the <c>range</c> function.
15+
A <term>definite loop</term>, also known as a <term><c>for</c> loop</term>, is a loop that is executed for a specific or <em>definite</em> number of times. In Python, the easiest way to write a definite loop is using the <c>for</c> loop structure in conjunction with the <c>range</c> function. <xref ref="python-range-options" text="type-global"/> shows the syntax for the <c>range</c> function.
1616
</p>
1717
<listing xml:id="python-definite-loop">
1818
<program interactive="activecode" language="python">
@@ -339,4 +339,4 @@ public class DoWhileExample {
339339
</exercise>
340340
</reading-questions>
341341
</section>
342-
</chapter>
342+
</chapter>

0 commit comments

Comments
 (0)