Skip to content

Commit a623e6c

Browse files
committed
added listing to the text
1 parent 28bb0c2 commit a623e6c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

source/ch4_conditionals.ptx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if score >= 90:
4747
<section xml:id="use-the-if-else-statement">
4848
<title>Using the <c>if</c> - <c>else</c> Statement</title>
4949

50-
<p>The Java equivalent follows the same syntactical rules as before.</p>
50+
<xref ref= "python-if-else" text="type-global"/> shows how Python the <c>if</c> - <c>else</c>statement is written in Python.
5151
<listing xml:id="python-if-else">
5252
<program interactive="activecode" language="python">
5353
<code>
@@ -59,7 +59,8 @@ if score &gt;= 90:
5959
</code>
6060
</program>
6161
</listing>
62-
62+
63+
<p> <xref ref="java-if-else" text="type-global"/> is Java equivalent that follows the same syntactical rules as before.</p>
6364
<listing xml:id="java-if-else">
6465
<program interactive="activecode" language="java">
6566
<code>

0 commit comments

Comments
 (0)