Skip to content

Commit d4bf0cd

Browse files
committed
addd comments to blocks
1 parent 3ac8b5d commit d4bf0cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/ch4_conditionals.ptx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<program xml:id="python-simple-if" interactive="activecode" language="python">
2020
<code>
2121
score = 95
22-
if score &gt;= 90:
22+
if score &gt;= 90: # Note the colon at the end of the line
2323
print("Excellent work!")
2424
</code>
2525
</program>
@@ -31,7 +31,7 @@ if score &gt;= 90:
3131
public class SimpleIfExample {
3232
public static void main(String[] args) {
3333
int score = 70;
34-
if (score &lt;= 70) {
34+
if (score &lt;= 70) { // Note the parentheses and curly braces
3535
System.out.println("Needs work!");
3636
}
3737
}

0 commit comments

Comments
 (0)