Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions source/ch4_conditionals.ptx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@
<title>Conditionals</title>

<section xml:id="using-conditional-in-java"> <title>Using Conditional Statements in Java</title>
<introduction>
<p><idx>conditional statements</idx>
Conditional statements in Python and Java are very similar.
In Python we have three patterns:
In Python we have three patterns.
</p>

</introduction>

<subsection xml:id="use-the-if-statement">
<title>Using the <c>if</c> Statement</title>
<p>
<xref ref="python-simple-if" text="type-global"/> shows how the simple <c>if</c> statement is written in Python.
</p>
Expand Down Expand Up @@ -50,7 +53,8 @@ if score &gt;= 90: # Note the colon at the end of the line
In Java, the parentheses around the condition are required because it is technically a function that evaluates to <c>True</c> or <c>False</c>.
</p>


</subsection>

<subsection xml:id="use-the-if-else-statement">
<title>Using the <c>if</c> - <c>else</c> Statement</title>

Expand Down