Skip to content

Commit 9f602f0

Browse files
authored
Merge pull request #222 from moisedk/issue221-pretext
fixed issue #221
2 parents e3cac1d + 10c409b commit 9f602f0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pretext/PythonTurtle/Exercises.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ for i in range(5):
316316
<exercise label="ex_3_11">
317317
<statement>
318318
<p>Write a program to draw some kind of picture. Be creative and experiment
319-
with the turtle methods provided in <xref ref="python-turtle_summaryof-turtle-methods"/>.</p>
319+
with the turtle methods provided in <xref ref="python-turtle_summary-of-turtle-methods"/>.</p>
320320
</statement>
321321
<program interactive="activecode" language="python" xml:id="ex_3_11_editor">
322322
<input>

pretext/Selection/PrecedenceofOperators.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<title>Precedence of Operators</title>
44
<p>We have now added a number of additional operators to those we learned in the previous chapters. It is important to understand how these operators relate to the others with respect to operator precedence. Python will always evaluate the arithmetic operators first (** is highest, then multiplication/division, then addition/subtraction). Next comes the relational operators. Finally, the logical operators are done last. This means that the expression <c>x*5 &gt;= 10 and y-6 &lt;= 20</c> will be evaluated so as to first perform the arithmetic and then check the relationships. The <c>and</c> will be done last. Although many programmers might place parenthesis around the two relational expressions, it is not necessary.</p>
55
<p>The following table summarizes the precedence discussed so far from highest to lowest.
6-
See <xref ref="appendices_precedence-table"/> for <em>all</em> the operators introduced in this book.</p>
6+
See <xref ref="appendices_operator-precedence-table"/> for <em>all</em> the operators introduced in this book.</p>
77
<table>
88
<tabular>
99
<row header="yes">

0 commit comments

Comments
 (0)