Skip to content

Commit d70ea78

Browse files
authored
Merge pull request #263 from habibasorour/issue_249_comment
Issue 249 fixed: add comment to 4.1
2 parents a1c3cc2 + 8f4791e commit d70ea78

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

source/ch4_conditionals.ptx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<program interactive="activecode" language="python">
2121
<code>
2222
score = 95
23-
if score &gt;= 90:
23+
if score &gt;= 90: # Note the colon at the end of the line
2424
print("Excellent work!")
2525
</code>
2626
</program>
@@ -36,9 +36,9 @@ if score &gt;= 90:
3636
<code>
3737
public class SimpleIfExample {
3838
public static void main(String[] args) {
39-
int score = 70;
40-
if (score &lt;= 70) {
41-
System.out.println("Needs work!");
39+
int score = 95;
40+
if (score &gt;= 90) { // Note the parentheses and curly braces
41+
System.out.println("Excellent work!");
4242
}
4343
}
4444
}

0 commit comments

Comments
 (0)