Skip to content

Commit 3134fb3

Browse files
committed
add the listing on text
1 parent 6e452dc commit 3134fb3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

source/ch4_conditionals.ptx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
<p>
16-
In Python the simple <c>if</c> statement is written as:
16+
<xref ref="python-simple-if" text="type-global"/> shows how the simple <c>if</c> statement is written in Python.
1717
</p>
1818

1919
<listing xml:id="python-simple-if">
@@ -25,9 +25,9 @@ if score &gt;= 90:
2525
</code>
2626
</program>
2727
</listing>
28-
28+
2929
<p>
30-
In Java, this same pattern requires two changes: the condition must be in parentheses <c>()</c>, and the code block must be enclosed in curly braces <c>{}</c>.
30+
<xref ref="java-simple-if" text="type-global"/> shows how the simple <c>if</c> statement is written in Java.
3131
</p>
3232
<listing xml:id="java-simple-if">
3333
<program interactive="activecode" language="java">

0 commit comments

Comments
 (0)